The program to ask the user to input the number of hours a person has worked in a week and the pay rate per hour is as written below.
To write this program, we will pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. Thus
hrs = input("Enter Hours:")
h = float(hrs)
xx = input("Enter the Rate:")
x = float(xx)
if h <= 40:
print( h * x)
elif h > 40:
print(40* x + (h-40)*1.5*x)
Read more about Python Program at; https://brainly.com/question/26497128
#SPJ1