

InterviewSolution
Saved Bookmarks
1. |
What do you mean by tokens In python ? Name the tokens available in python ? |
Answer» These are the smallest individualunit in a program are called as token or lexical unit . They are symbols used in programming language to organize sentence structures to indicate the program structure , expressions etc.1) Keywords2)Identifiers 3) Literals 4) Operators5)Puncuators<br>Tokens\xa0are the smallest unit of the program.1.\xa0keywordskeywords are nothing but a set of special words, which are reserved by Python and have specific meaning.2.\xa0identifieridentifier in Python are nothing but user defined name to represent programmable entity like variable, function, classes, modules or any object.3.\xa0literalsthe other built in object in Python are literal. literal can be define as data that is given in a variable or constant. Python has following literal:-(a) string(b) numeric(c) boolean(d) collection4.\xa0operatorsoperators are the symbols which performs the operation on some values. these values are known as operand. | |