Ask coding questions

← Back to all posts
How do you change the name of a file??
tcramer (4)

I edited the name and the d/l zip file was named main.py; perhaps because this is a free service - but I can't change the .py file name in my Linux directory.. something I'm missing. I used ren in a previous life but doesn't work in a GUI situation.

Comments
hotnewtop
JamesGordon1 (141)

You can't rename the main file but your can rename every other file's name

MrEconomical (2288)

its main.py because when running the program main.py will always be executed. its just a convention so dont change the file name, just like how javascript there is always an index.js