import random

def guess_number():
    guessed = False
    random_number = random.randint(1,100)

    while not guessed:
        user_number = input("Zgadnij liczbę: ")

        if user_number.isdigit(): #sprawdza, czy user_number można rzutować na liczbę
            user_number = int(user_number)
       # return your_number
            if user_number < random_number:
                print("Za mało!")
            elif user_number > random_number:
                print("Za dużo!")
            elif user_number == random_number:
                print("Zgadłeś!")
                guessed = True
        else:
            print("To nie jest liczba!")

guess_number()
3f44869cfc444715891fde29959f80d5afc6b369
<mask token>

<mask token>


def guess_number():
    guessed = False
    random_number = random.randint(1, 100)
    while not guessed:
        user_number = input('Zgadnij liczbę: ')
        if user_number.isdigit():
            user_number = int(user_number)
            if user_number < random_number:
                print('Za mało!')
            elif user_number > random_number:
                print('Za dużo!')
            elif user_number == random_number:
                print('Zgadłeś!')
                guessed = True
        else:
            print('To nie jest liczba!')


<mask token>

<mask token>


def guess_number():
    guessed = False
    random_number = random.randint(1, 100)
    while not guessed:
        user_number = input('Zgadnij liczbę: ')
        if user_number.isdigit():
            user_number = int(user_number)
            if user_number < random_number:
                print('Za mało!')
            elif user_number > random_number:
                print('Za dużo!')
            elif user_number == random_number:
                print('Zgadłeś!')
                guessed = True
        else:
            print('To nie jest liczba!')


guess_number()

import random


def guess_number():
    guessed = False
    random_number = random.randint(1, 100)
    while not guessed:
        user_number = input('Zgadnij liczbę: ')
        if user_number.isdigit():
            user_number = int(user_number)
            if user_number < random_number:
                print('Za mało!')
            elif user_number > random_number:
                print('Za dużo!')
            elif user_number == random_number:
                print('Zgadłeś!')
                guessed = True
        else:
            print('To nie jest liczba!')


guess_number()

import random

def guess_number():
    guessed = False
    random_number = random.randint(1,100)

    while not guessed:
        user_number = input("Zgadnij liczbę: ")

        if user_number.isdigit(): #sprawdza, czy user_number można rzutować na liczbę
            user_number = int(user_number)
       # return your_number
            if user_number < random_number:
                print("Za mało!")
            elif user_number > random_number:
                print("Za dużo!")
            elif user_number == random_number:
                print("Zgadłeś!")
                guessed = True
        else:
            print("To nie jest liczba!")

guess_number()