Can't get "Hello world!" to print/run

Question:
Simply copied/pasted: print(“Hello world”) into the python shell, hit run, and nothing happened except a blank output. Help please?

https://replit.com/@thegrinningowl/Hellopy
Replit Profile: https://replit.com/@thegrinningowl

Your code needs to be in main.py, not Hello.py. Replit by default will only run the main.py file when you press the run button.

2 Likes

Hey @thegrinningowl!

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.

Images

Dots

Show hidden files

edited

You should also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl

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