Python Program to Change Element of a List
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']
#Let's Change element of index 2 to '9'
list = '9'
#Now print the new list
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.