Source: https://www.uleth.ca/sites/default/files/2020/04/python_number_game-athomewithde.pdf