Don’t forget Python’s amazing list comprehension syntax!
guess = input(“Guess a letter:”).lower() display = [ letter if letter == guess else “_” for letter in word ]
Just one part of your question, but it saves a lot of futzing around with indices and replaces.
replace
Don’t forget Python’s amazing list comprehension syntax!
Just one part of your question, but it saves a lot of futzing around with indices and
replace
s.