Update python.html.markdown

This commit is contained in:
Stanislav (Stanley) Modrak 2022-10-26 18:36:17 +01:00 committed by GitHub
parent 0f97d7cc87
commit c86c82f4b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ for animal in ["dog", "cat", "mouse"]:
""" """
"range(number)" returns an iterable of numbers "range(number)" returns an iterable of numbers
from zero to the given number from zero up to (but excluding) the given number
prints: prints:
0 0
1 1
@ -628,6 +628,12 @@ def set_global_x(num):
set_x(43) set_x(43)
set_global_x(6) set_global_x(6)
"""
prints:
43
5
6
"""
# Python has first class functions # Python has first class functions