“tokens de pitón” Código de respuesta

tokens de pitón

#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

tokens de pitón

#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##

Respuestas similares a “tokens de pitón”

Preguntas similares a “tokens de pitón”

Más respuestas relacionadas con “tokens de pitón” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código