mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[python/en] Added range(start, stop).
This commit is contained in:
parent
8cfb7ba02f
commit
98aa4ef43c
@ -346,6 +346,18 @@ prints:
|
||||
for i in range(4):
|
||||
print(i)
|
||||
|
||||
"""
|
||||
"range(lower, upper)" returns a list of numbers
|
||||
from the lower number to the upper number
|
||||
prints:
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
"""
|
||||
for i in range(4, 8):
|
||||
print(i)
|
||||
|
||||
"""
|
||||
While loops go until a condition is no longer met.
|
||||
prints:
|
||||
|
Loading…
Reference in New Issue
Block a user