hours=int(input("Enter work Hour"))
if hours<=4:
wage=hours*30
elif hours<=8:
remain=hours-4
wage=4*30+remain*40
elif hours<=10:
remain=hours-8
wage=4*30+4*40+remain*50
else :
remain=hours-10
wage=4*30+4*40+2*50+remain*60
print("Your totale wages is ",wage)
Explain : Step 1: User enter the hours works Step 2: if condtion check hours - for which condition is true. ( Like we take hours is 7) Step 3: For hours 7 - elif(hours<=8) condition use. remain = 7-4=3. wage=4*30+3*40 Step 4: At the end we print wage- which contain total value.