I'm trying to write a program that asks the user their hours and returns it to the main program, and then their rate of pay and returns it to the main program. I can't run the program because it is saying there is a problem with this part of my code towards the end, it's not liking the quotation mark for some reason. of" The program may have other problems but I don't know because I can only get this far.
It is supposed to have 3 functions in addition the main. when it is done it should display something to this effect.
Pay rate $10.00
Regular Hours 40
Overtime hours 20
Regular pay $400.00
Overtime pay $300.00
Total Pay $700.00
def ask_hours():
return input ("How many hours did you work? ")
rate = raw_input ("What is your rate of pay? ")
def findrate():
pay = hours * rate
overtime = (hours - 40) * (rate * 1.5)
totalpay = pay + overtime
print "You earned", pay, "regular pay and", overtime "overtime pay which is a total of", totalpay
def main() :
hours = ask_hours()
findrate()
main()