0

How to reassign nested list elements ? Can anyone help me ? [5,6] in this now i would like to change 5 and keep 6 in my newlist

mylist1=[1,2,3,4,[5,6]] print(mylist1)

6th Mar 2017, 2:39 AM
Abin Singh R
Abin Singh R - avatar
2 Respuestas
+ 2
mylist1[0][0] = "new value"
6th Mar 2017, 4:31 AM
Leshark
Leshark - avatar
0
thanks for your answer
6th Mar 2017, 7:25 AM
Abin Singh R
Abin Singh R - avatar