Skip to content

Einstein check confused by numbers in prompt #174

Open
@curiouskiwi

Description

@curiouskiwi

If either prompt in the einstein.py code contains digits, check50 will erroneously use those in its comparison of correctness.

Example:

$ python einstein.py
Calculate e=mc^2, using mass: 1
E is: 90000000000000000

check50:

:) einstein.py exists
:( input of 1 yields output of 90000000000000000
    expected "90000000000000...", not "2,"
    Seems like your output might not be the right number!

Notice that it is picking up the following , in the prompt as well. not "2,"

Metadata

Metadata

Assignees

Labels

CS50PCS50 Python

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions