Ask coding questions

← Back to all posts
hang man
ArnavKakani (1)

it works but there is a syntax error that i need help on fixing

Comments
hotnewtop
SixBeeps (5627)

Both lines 54 and 56 have to match the indentation of line 51.

ArnavKakani (1)

@SixBeeps that created another problem

MrVoo (190)

@ArnavKakani Remove continue, from what I see it can and will do nothing.

SixBeeps (5627)

@ArnavKakani Now you have an empty block on 52, which Python doesn't like. If you don't want to do anything in that if-statement (for whatever reason) put a pass instead of just leaving it empty.

ArnavKakani (1)

@SixBeeps what should i do about the break outside the loop?