Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
more looping help?
#1
Hi,

I have another forLoop question if I may.

I want to loop through this line of code,
os.makedirs('.\\' + str(year) + '-01')
where with each iteration this part,
'-01'
increases by +1 integer and stops at 12.

Considering the many parts of that code line, I'm not sure how to do that.
Any ideas?
Thanks,
Phil Huh
Reply


Messages In This Thread
more looping help? - by pcsailor - Oct-01-2018, 04:32 AM
RE: more looping help? - by buran - Oct-01-2018, 06:45 AM
RE: more looping help? - by pcsailor - Oct-01-2018, 09:15 AM
RE: more looping help? - by buran - Oct-01-2018, 10:20 AM
RE: more looping help? - by stullis - Oct-02-2018, 12:05 AM
RE: more looping help? - by pcsailor - Oct-03-2018, 05:05 AM
RE: more looping help? - by buran - Oct-03-2018, 06:04 AM
RE: more looping help? - by wavic - Oct-03-2018, 06:22 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020