#loop FOR #range(a,b) - all ints between a and (b-1) #for example: range(1,5) are numbers 1, 2, 3, 4 #function range can have 3 parameters #range(1, 10, 2) - the numbers: 1, 3, 5, 7, 9 #if there is only one parameter in range #range(a) - all numbers from 0 to a-1 #write a program that prints hello 5 times using loop FOR for i in range(1,6): #i = 1, 2, 3, 4, 5 - 5 times print("hello") #write the same using loop WHILE i=1 while(i<6): print("hello") i=i+1 #different way to use loop FOR for i in range(5): #i=0,1,2,3,4 - 5 times print("hello")