If you're using print
calls to debug your Python code, consider using f-strings with self-documenting expressions instead.
Here we have a program that makes a random math prompt and then validates whether the answer give by the user is correct:
...
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Strings series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.