Q. What are tokens in Python? How many types of tokens are allowed in Python? Exemplify your answer.
Answer =
Token are smallest individual unit in a program.
Type of tokens:-
1 keywords : False, True , for , while
2 identifiers : a , A , lst , dic
3 literal : “python”,5,9, ‘class11’
4 operator : +,-,/,*,**,%,//
5 punctuators :&,^,?,#,@,!
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )