I have trouble running my code

Does anyone have any advice?
I need help. Whenever I create a new .py file and try to run my code it says “No such file or directory.”

Replit Profile: https://replit.com/@jacobcastle137

Hello,
are you trying to run a file that is not named main.py?
By default, the run button only looks for and runs the file called main.py in your repl.

You can change the file that your repl runs using the following steps:
Click three dots near files and click Show hidden files.
Then, open .replit file, and change entrypoint to whatever file path you’d like to run.

You can also import other files from main.py to run their code.

4 Likes