compNum = 50
num = int(input("Enter a number"))
count = 1

while num != 50:
    if num < 50:
        print("Low")
    if num > 50:
        print("High")
    num = int(input("Have another guess"))
    count += 1

print(f"Well done you took {count} attempts")

2770c839acb055ad758efff9a4e07207d0d79aaa
<mask token>

<mask token>
while num != 50:
    if num < 50:
        print('Low')
    if num > 50:
        print('High')
    num = int(input('Have another guess'))
    count += 1
print(f'Well done you took {count} attempts')

compNum = 50
num = int(input('Enter a number'))
count = 1
while num != 50:
    if num < 50:
        print('Low')
    if num > 50:
        print('High')
    num = int(input('Have another guess'))
    count += 1
print(f'Well done you took {count} attempts')

compNum = 50
num = int(input("Enter a number"))
count = 1

while num != 50:
    if num < 50:
        print("Low")
    if num > 50:
        print("High")
    num = int(input("Have another guess"))
    count += 1

print(f"Well done you took {count} attempts")
