end program in python code example
Example 1: how to stop the program in python
import sys
sys.exit()
Example 2: exit python script
import sys
sys.exit()
Example 3: end= in python
for i in range(1, 11):
for j in range(1, 11):
print(i * j, end=" ")
print("\t\t")