Python OOPs


Python SQLite


Examples


Others


Python Pass Statement


The pass statement is a null statement and use it as a placeholder for future code. For example, when we use empty code inside the loop, you will get an error. If you want to avoid getting an error, use pass statement.

Syntax
pass

Write a Python program to Print all numbers from given range, which is not divisible by 5.

Example
n1=10
n2=21
for i in range(n1,n2):
    if i%5==0:
        pass
    else:
        print(i)
Output
11
12
13
14
16
17
18
19