I recently started exploring Django and Flask to determine if I could migrate my application to these frameworks. However, as I hadn’t coded in Python in a while, I decided to create a small program to refresh my skills. I chose to create a fun guessing game, which is a popular coding exercise taught in schools. I asked my daughter to play the game and she gave it her seal of approval, saying that she had fun playing it. In fact, she was so enthusiastic about it that she now wants to turn the game into an iPad app, incorporating her own ideas to make it even better. Unfortunately, I am not at that level yet. Baby steps for daddy, my child.
Below is the code.