<filename>Python3/Lists/swapping.py<gh_stars>0
names = ['John', 'Mary']
print(names)

names[0], names[1] = names[1], names[0]
print(names)
<filename>Python3/Lists/swapping.py<gh_stars>0
names = ['John', 'Mary']
print(names)

names[0], names[1] = names[1], names[0]
print(names)