Can't seem to run multiple python files in one project
sodalover (5)

I have two .py files in my project. The first file, main.py ran 100% fine. I added a second file, hell.py, which only has print('hello') in it. When I switch the file viewer to hell.py, clicked run, and the console only displays the output of main.py, but does not display 'hello'. Why can't I get 'hello' to show up?

You are viewing a single comment. View All
Answered by Geocube101 (190) [earned 5 cycles]
View Answer
ash15khng (215)

@Geocube101 @sodalover repl.it needs to have a builtin "run point" (I'm not sure what the proper word is) to run your repl, so it always finds main.py and runs it. This is also why you cannot rename main.py