You should use sys.exit() in a script. quit() is only for the console. More 
here: 

https://stackoverflow.com/questions/19747371/python-exit-commands-why-so-many-and-when-should-each-be-used

On Monday, October 14, 2019 at 5:21:37 PM UTC-6, Moktar Mannaa wrote:
>
> This happened with me, too.
>
> On Monday, October 14, 2019 at 8:44:09 AM UTC+2, sigma369 wrote:
>>
>> 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 spyderlib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/47f24efb-6e97-473b-a8ee-1ec17644646f%40googlegroups.com.

Reply via email to