Back
I am aware of the die() command in PHP which stops a script early.
How can I do this in Python?
You can use the sys library and exit() function for making exit program in python:-
import sys sys.exit()
import sys
sys.exit()
31k questions
32.8k answers
501 comments
693 users