You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numberGuessingGame = [(exec("import random")), (numberGuess := random.randint(1,100)),(playgame := lambda count: [(guess:= int(input(f'Guess a number, you have made {count} guesses so far: '))),(count := count+1), print(f"\nYOU WINNNNN! The number was: {numberGuess}") if guess == numberGuess else [print("Too low!"),playgame(count)] if guess<numberGuess else [print("Too high!"),playgame(count)]]),playgame(1)]