“Token Python” Kode Jawaban

Token Python

#Python Token
#List of Python Tokens

 -Keywords
 -Identifier
 -Literals
 -Operators

-Kewwords: 
 Keywords are pythons reserved words, they convey a special meaning to 
 the compiler/interpreter. Each keyword has a certain meaning and a 
 certain opperation that it needs to carry out. Never use a keyword as 
 a variable as that could cause lots of complications and mistakes.

-Identifier:
 An Identifier is a name used to identify a variable, function, 
 class or object.
 Rules of Identifiers:
    ->No special characters exepct underscores(_),can be used as 
      an identifier
    ->Keywords should not be used as an identifier
    ->Python is case sensitive, Var with a capital V and var with
      a lowercase v are two separate identifiers
    ->The first character of an identifier can be an alphabet or 
      underscore but not a digit
     
-Literals:
 There are many types of literals such as the following
 Types of Literals:
    ->string literals
    ->numeric literals
    ->boolean literals
    ->special literals

-Operators:
 Operators are special symbols that are used to carry out aritmetic 
 and logic operations
 Various Types of Operators:
    ->Arithmetic
    ->Assigment
    ->Comparison
    ->Logical
    ->Bitwise
    ->Identity
    ->Membership
Abstract

Token Python

#PythonTokens
*Keywords--> False,True,return
*Literals--> datatypes like bool,int,float
*Operators-->  arithmatic and logic computation like /,//,**,*,+,-
*Identifiers--> some random combinations of character like alphabets,digits,etc.
*Punctuators--> parentheses ( ) , braces { }  these are punctuators
Gr@Y_orphan_ViLL@in##

Jawaban yang mirip dengan “Token Python”

Pertanyaan yang mirip dengan “Token Python”

Lebih banyak jawaban terkait untuk “Token Python” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya