The function below takes two numeric parameters. The first parameter specifies the number of hours a person worked and the secon
d the number of dollars that they earn each hour. Compute the value of their weekly pay check. Any time worked beyond 40 hours, is considered overtime. Any overtime earns double pay (but only on the hours beyond the first 40). (python) Function:
Create the calculate_pay function that takes 2 parameters.
Inside the function check whether the total_worked_hours is greater than 40 and then return the pay by calculating with the help of formula for work over 40 hours.
Otherwise return the pay by multiplying the total_worked_hours with rate_per_hour.