Advertisements
Advertisements
Question
Write short notes on Tokens.
Advertisements
Solution
Python breaks each logical line into a sequence of elementary lexical components known as Tokens. The normal token types are;
- Identifiers
- Keywords
- Operators
- Delimiters
- Literals
Whitespace separation is necessary between tokens, identifiers, or keywords.
APPEARS IN
RELATED QUESTIONS
Which operator is also called a Comparative operator?
What are the different operators that can be used in Python?
Explain the types of literals?
Write short notes on the Arithmetic operator with examples.
What are the assignment operators that can be used in Python?
Write short notes on Escape sequences with examples.
What are string literals? Explain.
Identify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e
The output of the following code is ______.
System.out.println(Math.ceil(6.4)+Math.floor(-1-2));Evaluate the given expression when the value of a=2 and b=3
b*=a++-++b+ ++a;
System.out.println("a="+a);
System.out.println("b="+b);