How can I run my own python code file from anywhere in CDrive, what should be written in PATH variable

How can I run my own python code file from anywhere in c drive and what should be written in PATH variable

By saving it to your preferred directory as you would any other file. If you have your IDE open,
and you open that Python module from its location, there is nothing that will stop you from running it.

Maybe I am misunderstanding your question. Can you please elaborate?