To calculate a person's salary given their payrate and their hours worked.The code below computes to:
<function salary at 0x000002326B31D048>
How do I make this run using the code below?
payrate= input("How much do you get paid per hour")
hrsworked= input("How many hours have you worked?")
def salary(pay):
if hrsworked<=40:
salary=payrate*hrsworked
elif hrsworked>40:
salary=payrate*(1.5*(hrsworked-40))
return salary
print (salary)