Skip to content
Invalid Syntax
Profile icon
HunterBerg

how do i fix this? (line 53)
pyrthon

You are viewing a single comment. View All
Profile icon
trg5503

@HunterBerg
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"