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


hours = input('Enter hours:')
rate = input('Enter pay:')
print(computepay(hours, rate))

4107d0b1b498ff80bc106f3570ec47e4b09ee409
<mask token>

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


<mask token>

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


<mask token>
print(computepay(hours, rate))

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


hours = input('Enter hours:')
rate = input('Enter pay:')
print(computepay(hours, rate))
