# Chapter4_main.py # main function with built in main statement page 108 # My functions for this program def myFunction1(): print("This is function 1.") fname = input("Enter your first name: ") # s lname = input("Enter your last name: ") # s def myFunction2(): print("This is function 2.") def myFunction3(): print("This is function 3. I am the main function") myFunction1() def myFunction4(): print("This is function 4.") ''' main -> visible obj in memory named 'main' fname -> visible obj in memory named 'fname' _main -> hidden obj in memory named 'main' _fname -> hidden obj in memory named 'fname' __main__ -> attr in memory named 'main' attached to the obj __fname__ -> attr in memory named 'fname' attached to the obj ''' ### RUNTIME APP ### # least amount of code at tab[0] if __name__ == "__main__": # entrypoint to the application myFunction3() # f 2 vars fname, lname