--- # Debugging Practice ```python import random def guess(): random = random.randint(1, 50) for i in range(6): user_num = int(input("Take a guess: ")) if user_num > random: print("Your guess is too high.") elif user_num < random: print("Your guess is too low.") else: if user_num == random: print(f'Good job! You guessed my number in {i+1} times.') else: print("you lose!") ```