Question #101084

Write a for loop to print the numbers from 20 to 30

Expert's answer

# Python 2.x

for i in range (20, 31):

print i


# Python 3.x

for i in range (20, 31):

print(i)


LATEST TUTORIALS
APPROVED BY CLIENTS