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