I just made a new .py file, but for some reason when I print output it ONLY works for my main.py…as in the console only works properly if the code is in main.py and it will completely ignore any code in the new .py file I created…any ideas on what to do?
When you slick RUN it only run main.py, but this can be changed by modifying the .replit file
see here
That happens because the run
and entrypoint
in .replit
is set to main.py only, and not new.py. To solve this, click on the three dots on the filemenu, click show hidden files, and go to .replit. Change the entrypoint
variable to new.py.
Oof… You beat me to it. Also, run is useless.
This is not a contest, id it?
Hey @AngelicaWest, welcome to the community!
Just click the three dots 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.
You can also change the second line from run="run_command_for_lang main.py"
to run="run_command_for_lang fileIWantToRun.py"
, though it won’t have an effect for interpreted languages as shown in the comment on line 1.
It starts to feel like a contest now
It is a contest. Who can get on top of the cheers lb.
It IS a contest. Who was the most helpful? Who answered the quickest?
Who’s the winner? The person who got Solution.
Also, is*
Lucky for you (whatever pronoun i need to use), i do not care about the cheers.
But, if you consider it, what can you get by having a post marked as solution? It won’t put more knowledge in your head. It won’t put money in your pocket. The reason I answer questions is for learning.
Umm… Badges…
https://ask.replit.com/badges/102/solved
https://ask.replit.com/badges/103/guidance-counsellor
https://ask.replit.com/badges/114/know-it-all
https://ask.replit.com/badges/115/solution-institution
Though, I also answer questions to learn more.
I answer just to help. And sometimes i learn form it too and that is great
Badges won’t give you knowledge, or put money in your pocket, same as solutions. Also from* @fpessolano .
So we now know that changing account name does not updates posts where you were mentioned
Did you change the Replit or Ask username?
Replit and as result ask also.