python exit function if condition met code example
Example: stop function python
def some_fuction():
print("This is all I do!")
return
# A simple return will end a function
def some_fuction():
print("This is all I do!")
return
# A simple return will end a function