Can someone please look at my code and see if I'm writing it efficiently using parameters and return values.
Thank you for your support
PAY_RATE = 12.75
#This program ask the user for: hours worked, then calculates gross pay.
def get_hours():
hours = input("How many hours did you work?: ")
return hours
def calc_gross_pay(hours):
gp = float(hours) * PAY_RATE
print "Gross Pay $%0.2f" % gp
def main():
hours = get_hours()
calc_gross_pay(hours)
main()