How to make a directory structure from list
Question: I've been looking into this but im not having much luck.

The idea is that python should generate 10 separate 6 digit random codes,
these 6 digit codes can then be used as folder names. this seems like such a
simple task and i have been using the makedirs to attempt it but so far no
luck, can someone please give a quick example on how this would be done?


Answer: Don't know why I did this for you. Feeling generous.

    
    
    from random import randint
    import os
    
    nums = 10
    digits = 6
    
    for i in range(nums):
        value = "".join([str(randint(0,9)) for _ in range(digits)])
        os.mkdir(value)
    

