I was trying to solve the word guesser problem and I realized I needed to compare using lists. The lists would allow me to compare the letters 1 by 1 and space by space so the spaces would be correct. Using the list function allowed me to split both the random word and the users guess into individual lists to compare.

No comments:
Post a Comment