Skip to content

Error running timed_math_challenge #3

Description

@hemanthbabu164

-> 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


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions