Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 2
which function can be used to terminate a program
4 Antworten
+ 6
import sys
sys.exit()
just exit() might work as well (can't test)
+ 4
exit(0)
+ 3
quit()
+ 1
Both exit() and quit()