- 1

Can u help interpret this program

dict_student = { } count = 1 for i in range(10): name = input("enter name ") dict_student.update({'r1801'+str(count): name}) count *=10

28th Oct 2020, 10:21 AM
Simbarashe Mpofu
Simbarashe Mpofu - avatar
2 Respuestas
+ 3
It is updating the dictionary with following key valur pair {r18011:name1} {r180110: name2} {r1801100: name3}
28th Oct 2020, 10:29 AM
Abhay
Abhay - avatar
+ 1
Ok anx u
28th Oct 2020, 10:59 AM
Simbarashe Mpofu
Simbarashe Mpofu - avatar