def decorate(func):

    def wrapper():
        l = []
        while True:
            x = func()
            print(x)
            if x != 'k':
                l.append(x)
            else:
                break
        return l
    return wrapper


@decorate
def my_input():
    try:
        x = input('podaj liczbe')
        x = int(x)
    except ValueError:
        x = 'k'
    return x


my_input()

c12355771b83f69007e88c1343836c3246016a60
<mask token>

<mask token>


@decorate
def my_input():
    try:
        x = input('podaj liczbe')
        x = int(x)
    except ValueError:
        x = 'k'
    return x


<mask token>

def decorate(func):

    def wrapper():
        l = []
        while True:
            x = func()
            print(x)
            if x != 'k':
                l.append(x)
            else:
                break
        return l
    return wrapper


@decorate
def my_input():
    try:
        x = input('podaj liczbe')
        x = int(x)
    except ValueError:
        x = 'k'
    return x


<mask token>

def decorate(func):

    def wrapper():
        l = []
        while True:
            x = func()
            print(x)
            if x != 'k':
                l.append(x)
            else:
                break
        return l
    return wrapper


@decorate
def my_input():
    try:
        x = input('podaj liczbe')
        x = int(x)
    except ValueError:
        x = 'k'
    return x


my_input()
