Making dir's

wrongbad at gmail.com wrongbad at gmail.com
Mon Jan 23 00:06:19 CET 2006


yawgmoth7 wrote:
> And so on. That is not very practical, and I wish to change it. I was
> wondering if there were any other methods to which I could do this, I
> was thinking maybe I could put the dir names in a dictionary then have
> something like:
> os.mkdir(thedictname)

Why not use a loop?

dirs = ['ASM', 'C', 'Python']

for dir in dirs:
    os.mkdir(dir)




More information about the Python-list mailing list