target = 55
guesses = [10, 80, 40, 55, 60]
count = 1

for i in range(len(guesses)):
    if guesses[i] != target:
        count += 1
    else:
        break

print(count)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: