mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update python.html.markdown
This commit is contained in:
parent
0f97d7cc87
commit
c86c82f4b5
@ -419,7 +419,7 @@ for animal in ["dog", "cat", "mouse"]:
|
||||
|
||||
"""
|
||||
"range(number)" returns an iterable of numbers
|
||||
from zero to the given number
|
||||
from zero up to (but excluding) the given number
|
||||
prints:
|
||||
0
|
||||
1
|
||||
@ -628,6 +628,12 @@ def set_global_x(num):
|
||||
|
||||
set_x(43)
|
||||
set_global_x(6)
|
||||
"""
|
||||
prints:
|
||||
43
|
||||
5
|
||||
6
|
||||
"""
|
||||
|
||||
|
||||
# Python has first class functions
|
||||
|
Loading…
Reference in New Issue
Block a user