Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 328 Bytes

21. Unit 2 - Lesson 8.md

File metadata and controls

22 lines (15 loc) · 328 Bytes

Pass Statement

Q1.

#Program to illustrate the pass construct

numbers = [ 1, 2, 4, 3, 6, 5, 7, 10, 9 ]

for i in numbers:
	if i%2  != 0:
		pass
	else:
		print(i)
		#Check for each number that belongs to the list


	#check if the number is odd
	
	
			#if odd, then pass ( No operation )
			
		#print the even numbers