Terminate a Program or A Function in Python - PythonForBeginners.com
Briefly