how too exit from func in python code example
Example 1: how to make player quit in python
import sys
sys.exit()
Example 2: stop procedure python
def some_fuction():
print("This is all I do!")
return
# A simple return will end a function
import sys
sys.exit()
def some_fuction():
print("This is all I do!")
return
# A simple return will end a function