Please ignore the example, it is just in a book I am currently learning from.
I am running this in Netbeans 6.9.1 as 7 doesn't support Python :( and I am getting a error when trying to run it in the output console. The code is exact as to what is written in the text book. The only thing I can think of is that net beans only supports 2.7.1 yet the book I am learning from is Python 3.1. Could this be the issue? Please let me know if I have overlooked something.
Here is the basic script;
# Word Problems
# Demonstrates numbers and math
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);
input("\n\nPress the enter key to exit");
Traceback (most recent call last):
File "/Users/Steve/Desktop/NewPythonProject/src/newpythonproject.py", line 6, in <module>
input("Press the enter key to find out.");
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
-Thanks guys.