#Loop FOR #write a program that prints numbers from 1 to 10 #using loop FOR for i in range(1, 10): print(i) #range(1,11) = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 #range(11) = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 #range(1,10)=1, 2, 3, 4, 5, 6, 7, 8, 9 #range(a,b)=a, a+1, a+2, ....,b-1 #if we want to write the same using loop while i=1 while(i<=10): print(i) i=i+1