@@CodingWithSohamJain I think you should do few more of these short project type videos as they will attract a particular set of audience who are aware of basics of python but want something a little bit more challenging.
Great tutorial, but there may be a tiny bug in it. For example, guessing 'three' when the secret word is 'years' will highlight both 'e' letters yellow, when I believe only one of them should be yellow. In any case, good tutorial regardless!
Yes, you are right. To fix that issue you would need to highlight the same number of letters as there are in the answer. So, if you guess "three" for "years," the first 'e' should be yellow. But, if the answer is something like "needy," both 'e's should be yellow.
I pulled these text files from archives online, but you can still do this with only one file. In this video, however, answers.txt stores the "secret words" that the user has to try to guess (which the program randomly selects at the start). On the other hand, guesses.txt is a text file containing all of the words that the user can enter as a guess. If the word that the user enters is not in guesses.txt, it returns "Invalid guess."