Making a directory structure for a web project
I think it would be nice, if you could define the directory structure once and then let the program create it. Something like this:

import os

folders = ["css", "resources/img", "resources/js"]

name = input("Enter the name of your project here: ")
for folder in folders:
    os.makedirs(os.path.join(name, os.path.normpath(folder)))
os.chdir(name)
...
# file opening like Peilonrayz suggested


This uses a list and os.path.join, which allows joining filenames with the platform specific file name separator (\ for Windows, / for UNIX), os.path.normpath to convert the / in the path to \ in case you are on Windows and it also uses a for-loop, if you have not seen them, yet.