Hello, I am new to programming and I am using python. I have a little problem. below is me trying to use the “try” reserved words but I keep getting a taceback, that there is a problem with my line 4 - dy = float(yz). Can anybody help?
xy = input('Work Hours:') yz = input('Rate:') try: ds = float(xy) dy = float(yz) except: print('Numbers only') quit() ab = ds*dy if ds > 40: print('overtime') otp = (ds-40) * (dy*0.5) mm = ab + otp else: print('regular') mm = dy*ds print('pay',mm)