I can guess the capital city!

This is a very simple Python Program, where the computer will ask for your name, age and favourite colour. Then you can choose a country, and the computer will tell you the Capital City corresponding to the Country you chose.
Hope you enjoy!

You are viewing a single comment. View All

Try and use fstrings, they're more efficient.
For example, line 2: print('Hi, %s.' % name)
can be replaced with print(f'Hi, {name}')