Answer:
Step-by-step explanation:
Let's do this in python 3. We can calculate the pay for the regular hours and the pay for overtime hours, then sum them up.
def weekly_pay(hourly_wage, total_regular_hours, total_overtime_hours):
regular_hours_pay = hourly_wage*total_regular_hours
overtime_hours_pay = 1.5*hourly_wage*total_overtime_hours
return regular_hours_pay + overtime_hours_pay