Ask coding questions

← Back to all posts
len(word)
EmilyYe4 (2)

len(word) error. Im creating hangman btw

Comments
hotnewtop
MrVoo (190)

You forgot to concatenate them, replace that line with word_completion = '_' + len(word)

EmilyYe4 (2)

ok. but there is new error @MrVoo
line 37
if guess in guessed_words"
^
SyntaxError: EOL while scanning string literal

CosmicBear (95)

@EmilyYe4 it should be if guess in guessed_words: You hit the wrong key.

EmilyYe4 (2)

File "main.py", line 37
if guess in guessed_words
^
SyntaxError: invalid syntax
@CosmicBear

MrVoo (190)

@EmilyYe4 No offense, but can't you try to debug it yourself? Align the else with the if/elif it corresponds with.

EmilyYe4 (2)

ok mate ill ask my dad. I'm kinda the only one in my fam that knows a bit of python tho... @MrVoo

MrVoo (190)

@EmilyYe4 It's not Java, it's Python... Also you do know google exists?

EmilyYe4 (2)

oo i am so dum dude
@MrVoo