Python Sys останавливается
import sys
#put your code here
sys.exit
Average Anteater
import sys
#put your code here
sys.exit
import sys
sys.exit()
def some_fuction():
print("This is all I do!")
return
# A simple return will end a function
#Follow me on grepper :D
#Using break in loop types
while True:
user= input("are you want to close program (y/n)? ")
if user == "y":
break
elif user=="n":
print("ok")
else:
print("invalid")