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
2 Réponses
+ 1
Understood . Thanks
14th Mar 2020, 4:05 PM
Amit Biswas
Amit Biswas - avatar