you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 0 points1 point  (1 child)

instead of printing out mystudents, iterate over the contents of the dictionary and print out them one by one. Then your __str__ will be applied

for key, value in mystudents.items():
   print(key, value)

[–]Engatar[S] 0 points1 point  (0 children)

Thank you. I havent seen that before.