The pass statement basically does nothing. It is used when syntactically a statement is needed, but the program, function or loop should do nothing.
|1||Initializes the variable |
|2 – 3||If the value of the variable |
|4 – 5||If the number is greater than or equal to 100, the string “Value is greater than or equal to 100” is output|
number = 17 if (number < 100): pass else: print("Value is greater than or equal to 100")