2013-07-04 | Paul Boddie | file changeset files shortlog | Fixed operator and built-in function invocations to use the "apply" function. Added a proper translation of print statements. | syspython-as-target |
paul@445 | 1 | #!/usr/bin/env python |
paul@445 | 2 | |
paul@445 | 3 | def test_loop(start, end): |
paul@445 | 4 | l = [] |
paul@445 | 5 | while start < end: |
paul@445 | 6 | l.append(start) |
paul@445 | 7 | start += 1 |
paul@445 | 8 | return l |
paul@445 | 9 | |
paul@445 | 10 | l = test_loop(0, 5) |
paul@445 | 11 | result_4 = l[-1] |
paul@445 | 12 | |
paul@445 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |