Lists are “mutable”

PHOTO EMBED

Tue Oct 25 2022 05:19:52 GMT+0000 (Coordinated Universal Time)

Saved by @L0uJ1rky45M #python

mutable_list = [2, 14, 26, 41, 63]
print(mutable_list)
# [2, 14, 26, 41, 63]
mutable_list[2] = 49 #We change the value in index 2 into '49'
print(mutable_list)
# [2, 14, 49, 41, 63]
content_copyCOPY

That means we can alter an element of a list using the index operator

https://www.py4e.com/html3/08-lists