I'm trying to print a list of integers, one item per line, after swapping the position of the largest item with the last item. After swapping the items, they still print in their original position.
large = values[values.index(max(values))]
last = values[-1]
large, last = last, large
for i in values:
print i
I'm sorry if this has already been answered, I haven't been able to find it yet.