def main(): print "This program does few of the things with a shopping list" groceries = list() #print groceries print "Adding items to the list:" groceries.append('milk') groceries.append("bread") groceries.append("cream cheese") print groceries, "The list's length is", len(groceries) print "Adding 'sour cream' to the top of the list:" groceries.insert(0,"sour cream") print groceries, print "The list's length is", len(groceries) print "Removing 'bread' from the list:" groceries.remove("bread") print groceries, print "The list's length is", len(groceries) print "Sorting the shopping list" groceries.sort() print groceries, print "The list's length is", len(groceries) main()