how to print numbers from 1 to 20 in python
for i in range(1, 21):
print(i)
how to print numbers from 1 to 20 in python
for i in range(1, 21):
print(i)
print numbers from 1 to 100 in python
# range(a,b,s) allows you to iterate from a to the closest number
# before b (excluded) with step s (default s=1)
# a,b,s are integers
for i in range(1, 101):
print(1, end = ' ') # prints 1 2 3 ... 99 100
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us