0
l = [3,7,7,78,12,[1,4,'hello']]

Below Ans dose not shows output :

l[4][2] = "goodbye"
print(l)
mhhabib
  • 2,975
  • 1
  • 15
  • 29
Student
  • 5
  • 2

1 Answers1

0

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']]