Save py file


#1

hi

i installed atom on my windows 10 64 bit… when i create new file … by going file —>new file and write command then how i save this save as test.py ?

i save the file but i unable to save it with .py extension ?

check below image

any help


#2

Just save as filename.py. There’s nothing special about using an extension from the drop down list over typing it yourself (that I’m aware of; Windows has disappointed me before though).


#3

ok but when i save this file as “test.py” and then i try to run command on cmd .
then this command not print i do this
Capture


#4

The file is not an executable. You’d either need a shebang line, or execute with python test.py


#5

Does the Windows shell recognize shebang lines?


#6

No clue. I’d be disappointed if it didn’t, but not surprised.

Edit: NVM, it’s probably impossible anyway, considering a shebang is a path.