Click Here to go back to the homepage.

Hangman Solution:


word = input()
guesses = list(input())
i = 0
guess_index = 0
while i < 10 and len(word) > 0:
    if guesses[guess_index] not in word:
        i += 1
    else:
        word = word.replace(guesses[guess_index], "")
    guess_index += 1
if len(word) > 0:
    print("LOSE")
else:
    print("WIN")