I am trying create a directory in python But it showing a message
can’t open file ‘create_directory’: [Errno 2] No such file or directory
First of all, i write some code inside create_directory.py file.
Here is those code:
import os dir_name = "dimik_pub" os.mkdir(dir_name)
i save this and run this in terminal using ,
Then it it says, can’t open file ‘create_directory’: [Errno 2] No such file or directory
Why like that ?
If i run those code in terminal then it works perfectly.But when i write this inside a file then run this , it showing this message.