diff options
author | Zachary Ferguson <zfergus2@users.noreply.github.com> | 2015-10-06 18:19:20 -0400 |
---|---|---|
committer | Zachary Ferguson <zfergus2@users.noreply.github.com> | 2015-10-06 18:19:20 -0400 |
commit | c4f93c0b0ec1fcea11e336b67929b9d6f426765c (patch) | |
tree | a97e9f7a56330e45122bb81bb5194f2aefe03fdb /python3.html.markdown | |
parent | 29cbff176857653422555650c983afef4a28ae1f (diff) | |
parent | 55c80f255202b03c4c3a66ac1d37f880a3782b68 (diff) |
Merge remote-tracking branch 'adambard/master'
Conflicts:
java.html.markdown
Diffstat (limited to 'python3.html.markdown')
-rw-r--r-- | python3.html.markdown | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index 7b6edae7..971ca0a4 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -387,6 +387,18 @@ for i in range(4, 8): print(i) """ +"range(lower, upper, step)" returns an iterable of numbers +from the lower number to the upper number, while incrementing +by step. If step is not indicated, the default value is 1. +prints: + 4 + 6 + 8 +""" +for i in range(4, 8, 2): + print(i) +""" + While loops go until a condition is no longer met. prints: 0 |