I have installed python 2.7.10 in my windows 7 32 bit system. I have created a small script test.py and saved it in the folder D:\python27. Now when I execute test.py from windows cmd it runs fine. But when I run python from the command line and then execute the same command test.py I get the error:
File "<stdin>",line 1, in<module>NameError:name 'test' is not defined.