Or, using list comprehension.
>>> numbers = [1, 2, 3, 4, 5] >>> numbers = [n + 5 for n in numbers] >>> numbers [6, 7, 8, 9, 10] -- http://mail.python.org/mailman/listinfo/python-list
Or, using list comprehension.
>>> numbers = [1, 2, 3, 4, 5] >>> numbers = [n + 5 for n in numbers] >>> numbers [6, 7, 8, 9, 10] -- http://mail.python.org/mailman/listinfo/python-list