-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
-> Downloaded the file timed_math_challenge.py
-> Tried running it on cmd with "py timed_math_challenge.py"
-> Faced the error:
Downloads>py timed_math_challenge.py
Press enter to start the timed math challenge.
------------------------------------
Traceback (most recent call last):
File "Downloads\timed_math_challenge.py", line 25, in
expression , ans = generate_problem()
~~~~~~~~~~~~~~~~^^
File "Downloads\timed_math_challenge.py", line 15, in generate_problem
answ = eval(expression)
^^^^^^^^^^
NameError: name 'expression' is not defined
Metadata
Metadata
Assignees
Labels
No labels