is always being run

there is file in my folder and i written some code in it then i have created file where i write some another code eg print(“Hi”) now when i try to tun file i am unable to se Hi printed only my code from file is getting runned not from the file why so and how to fix?

Replit Profile:

Hey @tmmahajan08!

Just click the next to “Files” then click “Show hidden files”. Next click on the .replit file and finally you can change the entrypoint to whatever file you want to run, and in this case



Show hidden files


You should also see the docs on how to configure a Repl:

And if you want to run the last edited file, take a look at this post:


You can directly run it from the shell using python [file_name].py. But if you want to run it by default, change the run command in .replit to 'python [file_name].py' as well as the entrypoint file.

Yes, and @tmmahajan08 note that if it is in a folder, use /folder-name/ for the entrypoint.