names=['Mark','Louis','Chalk']
for x in names:
print (x)
Mark Louis Chalk
names = ['Mark', 'Louis', 'Chalk']
for x in names:
print(x)
Mark Louis Chalk
names = ['Mark', 'Louis', 'Chalk']
for x in names:
print(x)
if x == 'Louis':
break
Mark Louis
names = ['Mark', 'Louis', 'Chalk']
for x in names:
print(x)
if x == 'Mark':
continue
Mark Louis Chalk
for x in range (10):
print (x)
0 1 2 3 4 5 6 7 8 9
for x in range(10):
if x == 5:
break
print(x)
else:
print("Finally Completed!")
0 1 2 3 4