we can use quit() command to close the programming but can we use exit to for that purpose as exit() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

we can use quit() command to close the programming but can we use exit to for that purpose as exit()

17th Sep 2016, 5:51 AM
Satyam Singh
Satyam Singh - avatar
4 Answers
+ 3
both will work pretty well
17th Sep 2016, 6:33 AM
Ben Ntabo
Ben Ntabo - avatar
+ 2
in python, exit() and quit() both do the same job
17th Sep 2016, 6:12 AM
steampunk08
steampunk08 - avatar
+ 1
but if u are in console both exit() and quit() work
17th Sep 2016, 6:20 AM
steampunk08
steampunk08 - avatar
0
but when i try to use exit () in quiz in my school they said only quit() will work
17th Sep 2016, 6:15 AM
Satyam Singh
Satyam Singh - avatar