Answers for "a function that can stop a program in python"

17

how to stop the program in python

import sys

sys.exit()
Posted by: Guest on March-07-2020
1

stop function python

def some_fuction():
  print("This is all I do!")
  return
# A simple return will end a function
Posted by: Guest on February-27-2020

Code answers related to "a function that can stop a program in python"

Python Answers by Framework

Browse Popular Code Answers by Language