Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 2
which function can be used to terminate a program
4 Respostas
+ 6
import sys
sys.exit()
just exit() might work as well (can't test)
+ 4
exit(0)
+ 3
quit()
+ 1
Both exit() and quit()