In Python I put print() but still get a syntax error -
i read answers here print() parentheses. have put them , syntax error anyway. can tell why? python 3.3.2+ (default, feb 28 2014, 00:52:16) [gcc 4.8.1] on linux >>> answer = "no" >>> while answer == "no": ... answer = input("are there? ") ... print("we're there!") file "<stdin>", line 3 print("we're there!") ^ syntaxerror: invalid syntax yes, can see ... prompt keeps print line under while loop. if press 2 times enter prints string input. >>> answer = "no" >>> while answer == "no": ... answer = input("are there? ") ... there? well since you're in interpreter, can see 3 dots again, means it's still expecting under while loop. press enter again , work. if want print part of loop, indent it, press enter , press enter again. hope helps! 1: >>> answer = "no" 2: >>> while ...