How to open my .py script from anywhere on my pc directly into python idle form command prompt?
Is there any way so that i can typeidle test.py on cmd so that it opens the test.py file in the current directory and if test.py is not available creates a new file and opens it into idle
You can do that by adding the directory where you have installed the idle editor the PATH environment variable.
How to do that depends on your operating system: just search the Internet for add directory to path plus your operating system: e.g. Windows/Ubuntu, etc.
After changing the environment variable it may be a good idea to restart your PC (to make sure that all programs use the updated version)
Python IDLE from cmd