Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How to terminate a python script

Asked by Lily Hemmings Jul 27, 2021 1.8K views 1 answer
Share

About this question

 In PHP there is a die() function that is used to display a message and exit the script. Is there something similar in Python? Why python exit with error?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.