Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #A local gaming company contacted you to build a game for them.
  2. #It is a simple geography quiz where a user has to guess the capital city of some country
  3.  
  4. capitalcity = {"Austria" : "Vienna",
  5. "Croatia" : "Zagreb",
  6. "Spain" : "Madrid",
  7. "Slovenia" : "Ljubljana"}
  8.  
  9. for state in capitalcity:
  10. question = input("What is the capital city of ")
  11. capitalcity1 = capitalcity [state]
  12. print(capitalcity1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement