Last successfully ran python file is still showing up in the console with a differently executed file

Question:

Repl link:

Hi @ericchelini1, welcome to the community!

So, first of all, that is a txt file, not a Python file. Second of all, Replit runs the main file by default. You can either change the .replit file, or just create a new Repl for every program you want to create, rather than creating a new file.

4 Likes

Thank You Sir.

Eric Chelini
echelini@comcast.net

You need to put that code in main.py file. as the file you are (trying) to run is not a python file. When you click the run button, you are running main.py. Hope that helps!

No problem!

I’m a girl, by the way.

NO!!! You beat me to solving it! Ugg. I will solve one one day though…

sorry…miss QQ
I failed to check…

1 Like

Thank You.
I will modify the file to .txt

That won’t run the file, if that’s what you were thinking. I meant that Replit was treating it as a .txt file instead of a Python (.py) file.

1 Like

That’s what I mean QQ.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.