How can I get a random pair from a dict
? I’m making a game where you need to guess a capital of a country and I need questions to appear randomly.
The dict
looks like {'VENEZUELA':'CARACAS'}
How can I do this?
How can I get a random pair from a dict
? I’m making a game where you need to guess a capital of a country and I need questions to appear randomly.
The dict
looks like {'VENEZUELA':'CARACAS'}
How can I do this?