# Display the command line parameters provided to a program import sys # Display the number of command line parameters (including the .py file) print("The program was started with", len(sys.argv), "command line parameters.") # Display the name of the .py file print("The name of the .py file is", sys.argv[0]) # Display all of the command line parameters beyond the name of the .py file print("The remaining parameters are:") for i in range(1, len(sys.argv)): print(" ", sys.argv[i])