Skip to content

Instantly share code, notes, and snippets.

years = list(map(str, range(2010, 2019))) # years = ['2010' ... '2019']
months = list(map(str, range(1, 13))) # months = ['1' ... '12']
months = [month.rjust(2, '0') for month in months] # months = ['01' ... '12'] (adds padding)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment