Your code almost worked, but not exactly. It couldn't make sense of the guesses "cba", but it did do "abc". I also had a hard time getting it to be case insensitive with tr///i with the eval function, so I just made a list of the uppercase values and included them in there too. You should test...
I'm trying to make a hangman game and I've run into a specific issue with the tr/// function. I want to replace the letters in the phrase that have not been guessed yet. This code does not work and I know that the highlighted line is the wrong one but I can't figure out how to make it work. Any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.