# x = input("Number 1 ")
# y = input("Number 1 ")
def min(x,y):
    less = 0
    numbers = [x,y]
    for num in numbers:
        if x > y:
            less = y
        else:
            less = x
    print(less)
# min(x,y)

x = input("Number 1 ")
y = input("Number 1 ")

def max(x,y):
    greater = 0
    numbers = [x,y]
    for num in numbers:
        if x > y:
            greater = x
        else:
            greater = y
    print(greater)
# max(x,y)

iterable = input(("Podaj stringa: "))
def len(iterable):
    lenght = 0
    for sign in iterable:
        lenght +=1
    print(lenght)

# len(iterable)

x = input("Number #1: ")
y = input("Number #2: ")   

def multiply(x,y):
    suma = 0
    
    if y > 0:
        counter = 1
        while counter <= y:
            suma += x
            counter +=1
    else:
        counter = -1
        while counter >= y:
            suma -= x
            counter -=1

    print("wynik mnożenia: ", suma) 
    return suma

# multiply(20,-4)

def power(x,y):
    suma = x
    counter = 0
    if y == 0:
        suma = 1
        print(suma)
        return suma
    elif y > 0:
        while counter < y:
            suma *= x
            counter +=1
    elif y < 0:
        while counter > y:
            suma = (1/x) * (1/x)
            counter -=1
    print("wynik potegowania: ",suma)    
    return suma
# power(3,-2)

## Extra
# def wynik(x,y):
#     a = x // y
#     print("wbudowana fukcja: ",a)

# wynik(20, -5)


# def costam(x,y):
#     counter = 0
#     number = x
#     if x == y:
#         counter = 1
#         print(counter)
#     elif x < y:
#         number = number + y
#         while number < y:
#             number = number+y
#             counter -= 1
#     else :
#         number = number-y
#         counter = 1
#         while number >= y:
#             number = number-y
#             counter += 1 
#     print(counter)

# costam(20,-2)
