human
Give me a Python program to makedir if necessary.
assistant
Here is a Python program to makedir if necessary

import os

def makedir(path):
    """Makes a directory if necessary.

    If the directory already exists, does nothing.
    """
    if not os.path.exists(path):
        os.makedirs(path)

# Enter the path
path = "/home/rosey/Desktop/"

# Calling the function
print((makedir(path)))

#Example Output

# None

#Remember to inspect code for bugs.