In this example we will learn how to change the element of List
#Change element of a specific index in a list list = ['1', '2', '3', '4', '5'] print(list) #Let's Change element of index 2 to '9' list[2] = '9' #Now print the new list print(list)
Output