I’m working on Sal’s Shipping problem in the LEARN PYTHON 3 course.
I wrote the following code:
#Get client to input weight of package
print("Hello. How much does your package weigh? ")
weight = float(input())
print(“I understand that your package weighs: " + str(weight) + " lbs.”)
When I run it on the Codecademy interface, I get the following error:
Hello. How much does your package weigh?
Traceback (most recent call last):
File “script.py”, line 3, in
weight = input()
EOFError: EOF when reading a line
However, I’ve also downloaded Pycharm and when I run the code on Pycharm, it runs fine. Why would this be?
I need for it to run in Codecademy too so that I can advance in my course.
Thanks for your help.