python stop running code example
Example 1: clear screen python
Import os
os.system("clear") # Linux - OSX
os.system("cls") # Windows
Example 2: how to stop running code in python
#to stop all execution of code
exit()
Import os
os.system("clear") # Linux - OSX
os.system("cls") # Windows
#to stop all execution of code
exit()