prog8_37.py

L = [3, 1, 4, 1, 5, 9, 2, 6]
print(L, id(L))
L.reverse()
print(L, id(L))
L.sort()
print(L, id(L))

# プログラム8-37(インプレースの変更)