I've started working on the well known Python for Absolute Beginners 3e. I've been copying the code faithfully, but some how keep getting error messages. So, I used the code provided in the help/examples folder but still get the same message:
Traceback (most recent call last):
File "word_problems.py", line 6, in <module>
input("Press the enter key to find out.")
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
Can someone give me either a clue, or explain what's not working. I can also post part of the code, the rest is identical (but I guess many people know this book), but with different questions:
print("If a 2000 pound pregnant hippo gives birth to a 100 pound calf,")
print("but then eats 50 pounds of food, how much does she weigh?")
input("Press the enter key to find out.")
print("2000 - 100 + 50 =", 2000 - 100 + 50)