diff options
| author | Geoff Liu <cangming.liu@gmail.com> | 2015-04-24 11:19:51 -0600 | 
|---|---|---|
| committer | Geoff Liu <cangming.liu@gmail.com> | 2015-04-24 11:19:51 -0600 | 
| commit | 4ee011100b8930b8fce40a234ab8de8e2e7d81df (patch) | |
| tree | c2e576c9b255d3a14439694f7e141808931dbd84 /python.html.markdown | |
| parent | 50d59adb720153cb87a81f3560e5a27b282ab961 (diff) | |
| parent | 98aa4ef43c84b9bdaa988971174bbb21e042e6ac (diff) | |
Merge pull request #1054 from srirams6/master
[python/en] Range function arguments.
Diffstat (limited to 'python.html.markdown')
| -rw-r--r-- | python.html.markdown | 12 | 
1 files changed, 12 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 | 
