#exploring loop FOR #What will be the output of the following code: print("Problem 1") for i in range(5, 9): print(i) #Answer: 5, 6, 7, 8 #What will be the output of the following code: print("problem 2") for i in range(-2, 10, 2): print(i) #Answer:-2, -2+2=0, 0+2=2, 2+2=4, 4+2=6, 6+2=8, 8+2=10 is NOT included already #since the range ends at 9(!!!!) #What will be the output of the following code: print("problem 3") for i in range(-2, 10, -3): print(i) #Answer:empty output #What will be the output of the following code: print("problem 4") for i in range(-2, -10, -3): print(i) #Answer: -2, -5, -8 #What will be the output of the following code: print("problem 5") for i in range(10, 0, -1): print(i) #Answer: 10, 10-1=9, 9-1=8, ....2-1=1, 1-1=0 will NOT be inluded #Answer: 10,9, ...,1