Lv2_mkdir.py
def makedir(dir):
    """
    Creating a folder if it does not exist in the directory.

    dir - desired directory (provide FULL path!)
    """

    if os.path.exists(dir):
        print('The path already exists!')
        return
    else:
        print('This directory did not exist - creating ' + dir + ' now!')
        os.makedirs(dir)

    Creating a folder if it does not exist in the directory.

    dir - desired directory (provide FULL path!)
    
Creating a folder if it does not exist in the directory.
dir - desired directory (provide FULL path!)
Creating a folder if it does not exist in the directory . dir - desired directory ( provide FULL path! )
def makedir(dir):
    if os.path.exists(dir):
        print('The path already exists!')
        return
    else:
        print('This directory did not exist - creating ' + dir + ' now!')
        os.makedirs(dir)
def makedir ( dir ) : if os . path . exists ( dir ) : print ( 'The path already exists!' ) return else : print ( 'This directory did not exist - creating ' + dir + ' now!' ) os . makedirs ( dir )
Creating a folder if it does not exist in the directory.
Creating a folder if it does not exist in the directory .
"""
    Creating a folder if it does not exist in the directory.

    dir - desired directory (provide FULL path!)
    """
dir