Given that your loop iteration count consistently remains below ten, it is advisable to modify the if condition to the following code:
if cycle < 10:
The complete code is provided below:
if cycle < 10:
if count >= 7:
print("You win")
elif count < 7:
print(f"You lose! Count = {count}")
Thank you.