Explain the result please. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Explain the result please.

lst=[[]]*3 lst[0].append(7) try: print(lst[1][0]) except: print("0") answer =7

14th Mar 2020, 3:05 PM
Amit Biswas
Amit Biswas - avatar
1 Answer
+ 1
Understood . Thanks
14th Mar 2020, 4:05 PM
Amit Biswas
Amit Biswas - avatar