Professional Documents
Culture Documents
1.2.4 Loop Statement
1.2.4 Loop Statement
2
Python If ... Elif … Else
3
Python Loops
● i=1 ● i=1
while i < 6: while i < 6:
print(i) print(i)
i=i+1 if i == 3:
break
● i=1 i += 1
while i < 6:
print(i)
if i == 3:
continue
i += 1
4
Demo Loops and if
For queries
Email: kawaljitkaur.uic@cumail.in
13/06/2024 6