diff options
| -rw-r--r-- | python.html.markdown | 12 | ||||
| -rw-r--r-- | python3.html.markdown | 12 | 
2 files changed, 24 insertions, 0 deletions
| diff --git a/python.html.markdown b/python.html.markdown index 63547bf6..668e04f9 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -347,6 +347,18 @@ 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:      0 diff --git a/python3.html.markdown b/python3.html.markdown index 6c5e1059..470eb6e4 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -340,6 +340,18 @@ 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:      0 | 
