0

D={'Ahmed':[1,5,3], 'Ali':[6,2,4]} for item in D: count = len(D[item]) - 1 x = 0 while x < count: D[item][count] += 1

i know the outbut but i do not understand how we got it.. please anyone explain it

22nd Dec 2019, 7:45 PM
Hussin Fekry
Hussin Fekry - avatar
1 Odpowiedź
0
The code as shown doesn't run nor has anything to output, after fixing the error. You should always link the actual code you run instead of making a copy.
23rd Dec 2019, 5:37 AM
John Wells
John Wells - avatar