+ 2

which function can be used to terminate a program

3rd Sep 2020, 6:16 PM
Jeet Swarnakar
Jeet Swarnakar - avatar
4 Respostas
+ 6
import sys sys.exit() just exit() might work as well (can't test)
3rd Sep 2020, 6:21 PM
Bagon
Bagon - avatar
+ 4
exit(0)
3rd Sep 2020, 10:48 PM
🍂B. Eitan 🌵
🍂B. Eitan 🌵 - avatar
+ 3
quit()
3rd Sep 2020, 7:34 PM
Namit Jain
Namit Jain - avatar
+ 1
Both exit() and quit()
4th Sep 2020, 7:25 AM
Jenson Y