Review of Python Class XII- Worksheet 1

Python Revision Tour -Notes

Token : Smallest individual unit that is used to create a program is called token or lexical unit. Python has following tokens:

(i) Keywords        (ii) Identifiers          (iii) Literals        (iv) Operaters        (v) Puncatuators

Keyword: Keyword is a reserve word having special meaning in the programming language. For example True, False, for, if, elif, while, def, in , break, continue are some keywords used in Python Language.

Identifiers: Identifers are non-keyword words that are used as name for variable, functions, modules etc. Python is a case sensetive and treat upper case and lower case characters differently. Ex. Mynum, num20, x, y, my_file etc.