[Tutor] Invalid Syntax

Peter Otten __peter__ at web.de
Sat Feb 25 12:43:24 EST 2017


Alan Gauld via Tutor wrote:

> On 25/02/17 10:35, ehsan faraz wrote:
>> ... where “tip” is an invalid syntax.

Alan went one step ahead and addressed the logical errors, but the 
SyntaxError is caused by missing closing parentheses:

>> price = int(input("Enter the menu price for your meal:")
>> tip = int(input("Enter your tip percentage:")




More information about the Tutor mailing list