Python Tutorial: Loop and Loop control statement in python

Published: 12 August 2021
on channel: Learn to code
118
14

Loop statement in python:
1. while
2. for

while (condition):
expression

num = 5 #initialization
while (num is greater than 0): #condtion
print("Hello, World")
num -=1 #updation

for variable in range(1,6):
if variable == 4:
continue
if variable == 5:
break
else:
pass
print(variable)
print("Done")


On this page of the site you can watch the video online Python Tutorial: Loop and Loop control statement in python with a duration of hours minute second in good quality, which was uploaded by the user Learn to code 12 August 2021, share the link with friends and acquaintances, this video has already been watched 118 times on youtube and it was liked by 14 viewers. Enjoy your viewing!