#!/usr/bin/env python # # file: /lectures/lecture_03/myprog.py # # revision history: # # 20250904 (JP): initial version #------------------------------------------------------------------------------ # import system modules # import os import sys import time # import other modules # #------------------------------------------------------------------------------ # # global variables are listed here # #------------------------------------------------------------------------------ # set the filename using basename # __FILE__ = os.path.basename(__file__) #------------------------------------------------------------------------------ # # functions are listed here # #------------------------------------------------------------------------------ # function: main # def main(argv): # print hello world # print("hello world") # set a variable # sum = float(27.0) # print its value # print("sum = %.2f" % (sum)) # display an informational message # print("... it has been a pleasure doing business %s ..." % ("today")) # # end of main # begin gracefully # if __name__ == "__main__": main(sys.argv[0:]) # # end of file