Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #print #numbers #python
ADD COMMENT
Topic
Name
7+2 =