In this example we will show how to modify the value of the specified array item in Python.
Source Code
letter = ['a', 'b', 'c', 'd']
print(letter)
letter[1] = 'e'
print(letter)
Output:
['a', 'b', 'c', 'd']
['a', 'e', 'c', 'd']
In this example we will show how to modify the value of the specified array item in Python.
letter = ['a', 'b', 'c', 'd']
print(letter)
letter[1] = 'e'
print(letter)
Output:
['a', 'b', 'c', 'd']
['a', 'e', 'c', 'd']