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 :&, ^, ?, #, @, !
Thank you for helping me in exam
ReplyDeleteWelcome : ) All the best.
DeleteSorry, but it will come soon.
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )