#use the 'exit' function to end a program before it finishes

import sys  #this imports the package that contains the 'exit' function
print('Hello')
sys.exit()  #this terminates the program immediately
print('Goodbye')    #so this line won't be run and 'Goodbye' won't be printed
