Practice python
May 27, 2025
Python daily practice
Date: 27/5/2025
program: 1
for i in range(1,10):
print(".....")
while i<5:
print(i)
breakThe explanation for above program, the for loop is used to loop the other statements 10 times (1-10), inside for loop the while is used to print only specified number of times, it prints 1, 2, 3, 4 after that the break statement will break the inside wile loop only not outside for loop. The outside for loop will continue up to 10 times.