Home >>Python Keywords >Python pass Statement

Python pass Statement

Python pass Statement

Python pass statement is used to execute nothing; it means you don’t want any command or to execute code. You can use pass statement if, you want to bypass any code.

Here is an example of Python pass Statement:

for num in [10, 13, 11, 88, 6, 99, 66]:
    if num%2 == 0:
        pass
    else:
        print(num)

Output:
13
11
99
Example 2:

for z in [1, 3, 5]:
  pass