#Workers in a company are paid £8 per hour for each hour they work up to a
#basic working week of 40 hours, and £12 an hour for any overtime they work.
#Write a program that asks the user to enter the number of hours worked
#and outputs the total pay for the week.
below is the which i have made, can cheak to see if it works. thnaks you

workedhours = input ("\nPlease enter number of hours worked this week: ")

while workedhours > 40:

workedhours = input("Incorrect, please enter worked hours this week again:")


overtime = input ("Please enter number of overtime horus worked this week: ")


if workedhours <= 40:

print "\n\nStandard hourly rate is £8 per hour, so you will get paid: \t£",8*workedhours


elif workedhours >= 40:

print "Standard hourly rate is £8 per hour, so you will get paid: \t£",8*workedhours


print "Overtime rate is £12 per hour, so you will get paid: \t\t£",12*overtime


print "\nTotal pay for the week is: \t\t\t\t\t£",8*workedhours + 12*overtime