Cómo detener el programa en Python
import sys
sys.exit()
Expensive Eagle
import sys
sys.exit()
#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