Ask coding questions

← Back to all posts

Why in my coding

for letter in chosen_word:

the part "letter" is keep showing in blue color not white color.

I believe this is the reason why it's keep showing up as error and it's not working as supposed to just like Angela's

What the hell is this error?

jesus christ

Can anyone help?


This is intended and is called syntax highlighting, the reason your friend one isn't blue is likely because it's lagging, reloading the page would turn it blue. As for the not working problem, here is the correct code:

Line 14 for letter in chosen_word: was not necessary
Line 11 guess = input("Guess a letter: ").lower you forgot ()
Line 11 guess = input("Guess a letter: ").lower() <- Corrected


Sorry that didn't work either
It just gives one line of "wrong" or "right".


@dylcho89 Yes, that's correct. Is that.. not what you want?


Thanks for your help but I was more to get help on fixing that error issue.

I find it waste of time.. I realize now that Angelina just posts her videos here and doesn't look after any possible errors that are arising in the future for the future students..

I can already see her video versions are older than what I am using etc.

She doesn't even come back around to check if anyone is facing errors.

I should look for offline courses rather than wasting my time on online.. it's ridiculous not realizing you got it right but then you didn't know you were right because the website itself has errors and lagging?.. pfff


@dylcho89 Oh I've understood what you've wanted now, I've updated my answer.


@dylcho89 Oops nevermind, I didn't see that message before updating it. Alse the website isn't lagging, their computer was.