You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,"
The text was updated successfully, but these errors were encountered:
I had the same experience which appears to be caused by the caret (^) in the prompt. When I removed it and changed the prompt to "Enter an integer for mass in E = mc²:" and submitted again, there were no issues.
If either prompt in the
einstein.py
code contains digits,check50
will erroneously use those in its comparison of correctness.Example:
check50:
Notice that it is picking up the following
,
in the prompt as well.not "2,"
The text was updated successfully, but these errors were encountered: