I am working on freecodecamp arithmetic calculator assignment. But when I click RUN button an error appears:
File “”, line 3
This is the boilerplate for the Arithmetic Formatter project. Instructions for building your project can be found at
SyntaxError: invalid syntax
How can I run the main file? Please, explain me.

boilerplate-arithmetic-formatter - Replit

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:

  1. Add run = "python3" to the first line of the file.
  2. Make sure you entrypoint = "" is present and change the entrypoint if it is something different.
1 Like

thank you, it works!

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