Skip to content
Invalid Syntax
Profile icon

how do i fix this? (line 53)

You are viewing a single comment. View All
Profile icon

I was looking at the wrong line, now I see your issue

Python uses whitespace very strictly, unlike many other general languages like JavaScript. Since your "else" statement on line 52 matches the same whitespace as the bit above, it doesn't correctly match it up with the if statement.

You can fix this by removing 2 spaces before the "else"