Empty blocks (pass command)

The pass statement basically does nothing. It is used when syntactically a statement is needed, but the program, function or loop should do nothing.

Code Explanation

LineDescription
1Initializes the variable number with the value 17
2 – 3If the value of the variable number is less than 100, the pass command is executed – so nothing is done
4 – 5If 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")