return doesn't stop process python code example
Example 1: python exit program
import sys
sys.exit()
Example 2: stop function 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