l = [3,7,7,78,12,[1,4,'hello']]
Below Ans dose not shows output :
l[4][2] = "goodbye"
print(l)
l = [3,7,7,78,12,[1,4,'hello']]
Below Ans dose not shows output :
l[4][2] = "goodbye"
print(l)
The nested list [1,4,'hello'] is in 5th index.
you should do:
l = [3,7,7,78,12,[1,4,'hello']]
l[5][2] = "goodbye"
print(l)
# Output: [3, 7, 7, 78, 12, [1, 4, 'goodbye']]