Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2] on linux2 Type "copyright", "credits" or "license()" for more information. >>> def do_something_to_this_list(the_list): for i in range(len(the_list)): the_list[i] = the_list[i]**2 >>> do_something_to_this_list([1, 2, 3, 4, 5]) >>> def do_something_to_this_list(the_list): for i in range(len(the_list)): the_list[i] = the_list[i]**2 return the_list >>> do_something_to_this_list([1, 2, 3, 4, 5]) [1, 4, 9, 16, 25] >>> def do_something_else_to_this_list(the_list): for i in range(len(the_list)): print(the_list[i]) >>> do_something_else_to_this_list([1, 2, 3, 4, 5]) 1 2 3 4 5 >>> def do_something_else_to_this_list(the_list): for i in the_list: print(i) >>> do_something_else_to_this_list([1, 2, 3, 4, 5]) 1 2 3 4 5 >>>