1 #!/usr/bin/env python 2 3 def test_loop(start, end): 4 l = [] 5 while start < end: 6 l.append(start) 7 start += 1 8 return l 9 10 l = test_loop(0, 5) 11 result_4 = l[-1] 12 13 # vim: tabstop=4 expandtab shiftwidth=4