Syntax error: invalid decimal literal

Hey all,
At the risk of realising I’m an idiot… I’ve been working through the Perfect Crab Introduction to programming course, and reached 017_expressions.
Despite having input the file source in multiple different ways- typed character for character, copied and pasted, had it corrected by ai and copied from there, the syntax error keeps showing up and all subsequent code is obviously invalidated. What am I missing?

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

code snippet

Hi @cmsshannonoffic

This doesn’t appear to be made for running in a Repl. The line which causes the error is here:

Line 49 explains that you should run the following commands in the shell.

I recommend that you follow the instructions in each task, but don’t run the Repl.


Okay many thanks Ian :pray: :pray:

1 Like

Or, you could comment out that line, as that will give an error.

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