Puzzle 30: Explanation

Let’s find out how to use Python’s built-in eval and exec functions.

We'll cover the following

Try it yourself

Try executing the code below to verify the results:

Get hands-on with 1200+ tech skills courses.