Oct-01-2018, 06:45 AM
import os year = 2018 for month in range(1, 13): folder = '{}-{:0>2}'.format(year, month) # folder = folder = f'{year}-{month:0>2}' # in 3.6+ os.makedirs(os.path.join('.', folder))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs