""" Examples from in-class workshop. Author: Mathieu Perreault """ ## Printing whether two arguments are equal. import sys # Here sys.argv is our list of arguments. # sys.argv[0] will be the name of the program and sys.argv[1] and above the arguments. arg1 = sys.argv[1] arg2 = sys.argv[2] print "Arguments 1 and 2 are equal:", arg1 == arg2 ## Iterating through a list. mylist = ["Python", "is", "awesome"] # Go through the list and print every element, in uppercase form. for el in mylist: print el.upper()