Python KeyWords
Keywords are predefined words with special meaning to the language compiler or interpreter. These are reserved for special purposes and must not be used as normal identifier names. Serial No Keyword Description Example 1 False instance of class bool. x = False 2 class keyword to define a class. class Foo: pass 3 from clause to import class from module from collections import OrderedDict 4 or Boolean operator x = True or False 5 None instance of NoneType object x = None 6 continue continue statement, used in the nested for and while loop. It continues with the next cycle of the nearest enclosing loop. numbers = range(1,11) for number in numbers: if number == 7: continue 7 global global statement allows us to modify the variables outside the current scope. x = 0 def add(): global x x = x + 10 add() print(x) # 10 8 pass Python pass statement is used to do nothing. It is useful when we require some statement but we don’t want to execute any code. def foo(): pass 9 True instance of bool cla...