How do i create directory in C: drive (or) D: drive. I have used python script and Java, but i was not able to create directory, i got syntax error. Please help me out.
No you can't do that. os.makedirs() doesn't return anything. Why do you want to assign the directory to a variable (you want a directory object?)? If you give me an idea of what you're trying to accomplish I might be better able to help.