1.

Solve : help with python invalid syntax?

Answer»

#prompt for name then subsequent MILE runs then add mile runs.


(name)= input("please enter DRIVER name")
(wage)= (int(input('please enter dollars/mile'))


if x=='y':<--- it keeps saying invalid SYNTAX and idk why
print('name')
print('wage' * 'tripticket')



else:
tripticket=input('drivers total miles')
'x'=input('continue y or n')

THERES PROLLY DOZENS OF OTHER MISTAKES IN THIS BUT I WAS GUNNA FIX IT ALL AFTER I COULD AT LEAST GET IT TO RUN. ANY HELP. THIS IS JUST AN EXERCISE TO HELP LEARN PYTHONThe second line has an unclosed parentheses.Quote from: BC_Programmer on MAY 07, 2013, 10:27:21 AM

The second line has an unclosed parentheses.

Parenthesis?


Discussion

No Comment Found