Aug-27-2020, 01:42 PM
(This post was last modified: Aug-27-2020, 01:42 PM by Axel_Erfurt.)
remove the quotes on print
hrs = input("Enter Hours:") h = float(hrs) if h <= 40: rate = 1.5 print(h * rate) elif h > 40.0 : rate = 10.5 print(h * rate)shorter version
hrs = float(input("Enter Hours:")) print(hrs * 1.5) if hrs <= 40 else print(hrs * 10.5)