top of page

Countries Test

The countries test was my final project on the python unit. We had to create a simple game / quiz using all the techniques we had learnt in the unit.

​

How it works

The Countries Test is a simple test run  by python to test your knowledge of different countries and their flags. It's very simple, a flag shows up on screen and you have to input the country you think it is out of three different options. If you get it correct, a positive message shows up on screen and your score increases by 1, if you get it incorrect a different message comes up and my sore is decreased by 1. At the end your score is given to you along with another message.

The code I used

For the questions, I re-used the code from my interviewer program but made the questions country based. For the creation of the flags, I used the python turtle tool and scripted in the dimensions and colours of the flags.

france question countries test.png
bottom of page