Answers for "how to exit out of a function in python"

8

exit in python

import sys
msg = "bye bye"
sys.exit(msg)
# you can use it with out a msg
Posted by: Guest on May-09-2020
1

how to exit program in python

import sys sys.exit()	//This will exit the python program
Posted by: Guest on May-06-2020

Code answers related to "how to exit out of a function in python"

Python Answers by Framework

Browse Popular Code Answers by Language