exit is an alias of sys.exit. Any lines of code after the exit() will not be executed.
# hello.py
print('Hello, ')
exit()
print('World!')
exit is an alias of sys.exit. Any lines of code after the exit() will not be executed.
# hello.py
print('Hello, ')
exit()
print('World!')