Guessing Game Running Design Example

Example of a design that runs without syntax errors

$ python3 gg-design.py
In print_intro
87
In get_int
your guess: 50
Nope...too low
In get_int
your guess: 80
Nope...too low
In get_int
your guess: 90
Nope...too high.
In get_int
your guess: 87
Correct!!
In final_message

Note: in the above output, the program is getting guesses and showing if they are too high or too low, since that part is done in main(). However, the get_int() function is incomplete because it doesn’t yet ensure that the guess is valid.