How to be able to get an output in the console log

Question: Why does an invalid syntax message appear in the console log every time I tried to generate an output for this code please?

Repl link:https://replit.com/@RonJLu/PessimisticApprehensiveRectangle#slice.py

Hi @RonJLu, welcome to the community!

Note:
An easier way you can do this is just by using the Shell tab instead of the Console tab.


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="python main.py" to run="python slice.py", though it won’t have an effect for languages with interpreters as shown in the comment on line 1.

Images

Dots

Show hidden files

edited

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

2 Likes

Hi QwertyQwerty54, thanks for the warm welcome! Are you able to see the screenshot now by any chance?

2 Likes

Yes, after editing your post. Please take a look at my edited reply.

Thank you very much, this was a lot of helpful information, how would I use a shell tab instead please?

In the sidebar, under Tools, you should see a shell option:

Alright then, thanks again, a lot of help

1 Like

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