for i in range(-1,10,-1): while i>0 and i<10: i += 2 print(i) #print(i) code example
Example 1: What type of loop does the following Python syntax represent? for i in range(10): print(i)
What type of loop does the following Python syntax represent?
for i in range(10):
print(i)
Example 2: for i in range(0): print(i)
for i in range(0):
print(i)