I am generating these 2 lists using list comprehension.
lists = ['month_list', 'year_list']
for values in lists:
print [<list comprehension computation>]
>>> ['2012', '2011', '2010', '2009', '2008', '2007', '2006', '2005', '2004', '2003']
>>> ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
I want to append these 2 dynamically generated lists to this list names.
for example :
month_list = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
year_list = ['2012', '2011', '2010', '2009', '2008', '2007', '2006', '2005', '2004', '2003']
<list comprehension computation>look like? Because the best answer will depend on it. (It most likely won't contain a loop, though.)