0

How to iterate this dictionary in the this code???

https://code.sololearn.com/cZoBaLdGpraS/?ref=app

4th Apr 2019, 6:44 PM
Hamed.z
Hamed.z - avatar
3 odpowiedzi
+ 3
for k, v in a.__dict__.items(): print(k, v) /best answer and a downvote, thanks!
4th Apr 2019, 7:12 PM
Anna
Anna - avatar
+ 4
for k, v in vars(a).items(): print(repr(k), v)
4th Apr 2019, 8:36 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
LOL 12-5=7 you're still in profit😁
4th Apr 2019, 7:33 PM
Emoji FanBoy
Emoji FanBoy - avatar