I am working on freecodecamp arithmetic calculator assignment. But when I click RUN button an error appears:
File “README.md”, line 3
This is the boilerplate for the Arithmetic Formatter project. Instructions for building your project can be found at https://www.freecodecamp.org/learn/scientific-computing-with-python/scientific-computing-with-python-projects/arithmetic-formatter
^
SyntaxError: invalid syntax
How can I run the main file? Please, explain me.
Can you provide a link to your replit please?
You need to start over with a new replit and when the import completes, make sure you select Use run command
and click Done
instead of Use default interpreter
when the .replit
file shows up on upper right-hand side.
Or, you can click the 3 vertical dots on the Files
line and select Show Hidden and modify the .replit
config file as below:
- Add
run = "python3 main.py"
to the first line of the file. - Make sure you
entrypoint = "main.py"
is present and change theentrypoint
if it is something different.
1 Like
thank you, it works!