Unit 2 - Lesson 8 | Codetantra Python

Unit 2 - Lesson 8 | Codetantra Python

Unit 2 - Lesson 8

22.1.1. Understanding pass statement

#write your code here
n = int(input("n: "))
for num in range(1,n):
    if num%2 != 0:
        pass
    else:
        print(num)