memories = [] # Global variable to store memories def printMemories(): '''Print a numbered list of all memories''' for i in range(0, len(memories)): print "{}. {}".format(i+1, memories[i]) def remember(mem): '''Remember mem ephemerally and print all memories''' memories.append(mem) # Add mem to end of list printMemories() # Print all memories