Sunday, 1 September 2013

How to generate filename appropiate to the list assigned "years"

How to generate filename appropiate to the list assigned "years"

How to generate filename appropiate to the list assigned "years". I need
to know how to generate the "calendar" name appropiate to the year_list. I
want to add 2000 to 2013 year_list at once, because right now I have to
edit and change every year number once I run the script to output
different year.
year_list = [2000]
FILENAME = "calendar_2000.txt"
What I need is year_list to be 2000, 2001, 2002.. up to 2013 and the
output file to be generated accordingly to the year_list numbers.

No comments:

Post a Comment