I've written a code, but I can't figure out where I've gone wrong. Can someone help? Thanks a million.
CODE -
import random
guess =0
count =0
x = random.randint(1,10)
while guess!=x:
count= count+1
guess=int(input("What number do you guess?"))
if guess < 4:
print('You took', count,'guesses. You are lucky.')
if guess = 5:
print('You took', count,'guesses. You are Mr Average.')
if guess > 5:
print('You took', count,'guesses. You are a loser.')