I am using spyder 3.6

below is my code.

scrip still runs and give error even after quit command (if any of input 
value us not numerical). please help

# HW1 #hw2
x= input('enter hours\n')
try:
    x=float(x)
    y=input('enter rate\n')
    y=float(y)
except:
    print('please enter numnerical values')
    quit()

xx=float(0.00)
yy=float(0.00)
if x>40:
    xx=x-40
    x=40
    yy=1.5*y
print ('total pay is ',((x*y+xx*yy)))

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/506232af-9e02-473c-a786-4d45540c76b5%40googlegroups.com.

Reply via email to