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:
for letter in chosen_word: was not necessary
guess = input("Guess a letter: ").lower you forgot
guess = input("Guess a letter: ").lower() <- Corrected
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