'First input doesn't register anything?

(made in replit)

while predirection:
    wrongchoice = input()
    if wrongchoice == ("sword"):
        inventory.append(wrongchoice)
        break
    elif wrongchoice == ("dead leaf"):
        inventory.append(wrongchoice)
        break
    elif wrongchoice == ("goat leg"):
        inventory.append(wrongchoice)
        break
    else:
        print("Old Lady: Choose one.")

Only the second input registers an action of any sort?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source