creame el juego de la vivborita
from random import randint def play(): number = randint(1, 100) guess = 0 attempts = 0 while guess != number: guess = int(input("Guess a number between 1 and 100: ")) attempts += 1 if guess > number: print("Your guess is too high") elif guess < number: print("Your guess is too low") print("You won with", attempts, "attempts") play()