how to stop running code in python

Do you want to know the information regarding “how to stop running code in python”. If yes, you’re in the correct post.

how to stop running code in python

import sys

sys.exit()
#to stop all execution of code
exit()

Final Words

I hope this article helps you to know about “how to stop running code in python”. If you have any queries regarding this tutorial please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment