Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Loops with variables that count

n = 1
while n <= 5:
    print(n * 2)
    n = n + 1
Source by personal.math.ubc.ca #
 
PREVIOUS NEXT
Tagged: #Loops #variables #count
ADD COMMENT
Topic
Name
5+2 =