def computepay(h,r):
    if h <= 40:
        return (h * r)
    elif h > 40:
        return (40 * r + (h-40) * r * 1.5)

hrs = input("Enter Hours:")
rates = input("Enter Rates:")
r = float(rates)
h = float(hrs)
p = computepay(h,r)
print("Pay",p)
72c03bc0f75eb7258fa21c47362f727ed9e51668
<mask token>

def computepay(h, r):
    if h <= 40:
        return h * r
    elif h > 40:
        return 40 * r + (h - 40) * r * 1.5


<mask token>

def computepay(h, r):
    if h <= 40:
        return h * r
    elif h > 40:
        return 40 * r + (h - 40) * r * 1.5


<mask token>
print('Pay', p)

def computepay(h, r):
    if h <= 40:
        return h * r
    elif h > 40:
        return 40 * r + (h - 40) * r * 1.5


hrs = input('Enter Hours:')
rates = input('Enter Rates:')
r = float(rates)
h = float(hrs)
p = computepay(h, r)
print('Pay', p)

def computepay(h,r):
    if h <= 40:
        return (h * r)
    elif h > 40:
        return (40 * r + (h-40) * r * 1.5)

hrs = input("Enter Hours:")
rates = input("Enter Rates:")
r = float(rates)
h = float(hrs)
p = computepay(h,r)
print("Pay",p)