I have a list of tuples:
Months = [('2011-01-01', '2011-02-01'), ('2011-02-01', '2011-03-01'), ('2011-03-01', '2011-04-01'), ...]
I would like to define a function that loops through the list, and calls the elements of the tuple independently. For example:
def function(list):
print """
Start %s
End %s
""" % list
I would them do something like:
for tuple in months:
function(tuple)
Obviously I have a problem as I have two %s's but only one argument.
Is there a way to do this?