nick34992
4/17/2017 - 8:10 PM

Python: For Loop, Range

Python: For Loop, Range

n = 3
for i in range(n):
    print(i+1)  # i starts at zero -> 0, 1, 2, 3
# 1
# 2
# 3