Ask coding questions

← Back to all posts
I need help with this race project
MrMTB

For some reason the thing says its a invalid syntax but I can't find out whats wrong

Voters
MrMTB
Comments
hotnewtop
Wumi4

On line 31, you write something like this:

You miss an operator between the number 2 and (len(colors) + 1). Do you mean a multiply?

MrMTB

thanks @Wumi4 i am a beginer

MrMTB

@Wumi4 thogh it came up with this: main.py:31: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
spacingx = WIDTH // 2 (len(colors) + 1)

Wumi4

@MrMTB You haven't fixed the problem yet...