python exit program
import sys
sys.exit()
jak zatrzymać program w Pythonie
import sys
sys.exit()
jak zatrzymać uruchamianie kodu w Pythonie
#to stop all execution of code
exit()
# Do stuff
stop = input("Would you like to stop the program? ")
if stop == "y":
exit()
else:
# do stuff
stop program python
# Do stuff
stop = input("Would you like to stop the program? ")
if stop == "y":
exit()
else:
# do stuff
jak zatrzymać pythonw
taskkill /IM pythonw.exe /F