import sys

print(sys.argv)

'''
python3 cmdargs.py 1 2 3
6
'''


# memorize - add up the command-line arguments
def add_args():
  total = 0
  for x in sys.argv[1:]:
    #print(x)
    total += int(x)
  print(total)

# print all of the command-line arguments, including the name of the program
def print_args():
  for x in sys.argv:
    print(x)

print_args()
