Tokens Tokens are smallest unit of a python program. As we see in chemistry a molecule are made up of combination of elements. Same as we compare in python programming the programs which we write in python are the molecules and the tokens are the elements of python. There are five types of tokens in python: Keywords Identifiers Literals Punctuators Operators Keywords Keywords are nothing but the reserved words which are used by python and have their specific meanings. We are not allowed to use keywords as variables in Python. Keywords in python are case sensitive. Some keywords in python are False, None, True, and, if, class, global, else, finally, for, not, etc. Identifiers Identifiers in python are nothing but user defined names to represent variables, functions, classes, etc. But there are few rules that we have to follow while defining an identifier: You can define the variable using letters (a to z), numbers (0 to 9) or an underscore (_). You cannot use di...
This blog is made specially for students those who have selected Computer Application (165) as a subject in CBSE board exam. It includes chapter wise notes, videos, assignments, etc.