Drop links or images here to add them to the editor.

Met een for-loop doorloop je alle sleutels van een dictionary:

gamescores = {"Tim": 500, "Janneke": 900, "Bob": 680}
for speler in gamescores:
    print(speler, "heeft", gamescores[speler], "punten")

Uitvoer:

Tim heeft 500 punten
Janneke heeft 900 punten
Bob heeft 680 punten