Jun-16-2021, 05:05 PM
colorCode is a list. playerGuess is a string. On line 33 (and on line 74) you cast the string as a list to do the comparison. But on line 39 you do not. The string will never be equal to the list and the while loop will never exit.