def is_float(x):
    try:
        float(x)
        return True
    except ValueError:
        return False


i = 0
print("Hi! Welcome to Easy Calculator!")
while i == 0:
    print("Please, enter one of these operations: +, -, *, /, ^ or 'exit' for exit:")
    operation = input()
    if operation == 'exit':
        i = 1
        print("Goodbye!")
        break
    else:
        print("Enter the first number:")
        a = input()
        if is_float(a):
            a = float(a)
        else:
            print("Incorrect number!")
            continue
        print("Enter the second number:")
        b = input()
        if is_float(b):
            b = float(b)
        else:
            print("Incorrect number!")
            continue

    if operation == '/' and b == 0:
        print("Oooops! Divide-by-zero isn't supported by me:( Try other numbers or operation!")
    elif operation == '+':
        print(a+b)
    elif operation == '-':
        print(a-b)
    elif operation == '*':
        print(a*b)
    elif operation == '/':
        print(a/b)
    elif operation == '^':
        print(a**b)
    else:
        print("This operation isn't supported by me:( Try other")

fe9ea45a9ec53eb365988bd6a5e9bb5c92a26509
<mask token>

def is_float(x):
    try:
        float(x)
        return True
    except ValueError:
        return False


<mask token>

def is_float(x):
    try:
        float(x)
        return True
    except ValueError:
        return False


<mask token>
print('Hi! Welcome to Easy Calculator!')
while i == 0:
    print(
        "Please, enter one of these operations: +, -, *, /, ^ or 'exit' for exit:"
        )
    operation = input()
    if operation == 'exit':
        i = 1
        print('Goodbye!')
        break
    else:
        print('Enter the first number:')
        a = input()
        if is_float(a):
            a = float(a)
        else:
            print('Incorrect number!')
            continue
        print('Enter the second number:')
        b = input()
        if is_float(b):
            b = float(b)
        else:
            print('Incorrect number!')
            continue
    if operation == '/' and b == 0:
        print(
            "Oooops! Divide-by-zero isn't supported by me:( Try other numbers or operation!"
            )
    elif operation == '+':
        print(a + b)
    elif operation == '-':
        print(a - b)
    elif operation == '*':
        print(a * b)
    elif operation == '/':
        print(a / b)
    elif operation == '^':
        print(a ** b)
    else:
        print("This operation isn't supported by me:( Try other")

def is_float(x):
    try:
        float(x)
        return True
    except ValueError:
        return False


i = 0
print('Hi! Welcome to Easy Calculator!')
while i == 0:
    print(
        "Please, enter one of these operations: +, -, *, /, ^ or 'exit' for exit:"
        )
    operation = input()
    if operation == 'exit':
        i = 1
        print('Goodbye!')
        break
    else:
        print('Enter the first number:')
        a = input()
        if is_float(a):
            a = float(a)
        else:
            print('Incorrect number!')
            continue
        print('Enter the second number:')
        b = input()
        if is_float(b):
            b = float(b)
        else:
            print('Incorrect number!')
            continue
    if operation == '/' and b == 0:
        print(
            "Oooops! Divide-by-zero isn't supported by me:( Try other numbers or operation!"
            )
    elif operation == '+':
        print(a + b)
    elif operation == '-':
        print(a - b)
    elif operation == '*':
        print(a * b)
    elif operation == '/':
        print(a / b)
    elif operation == '^':
        print(a ** b)
    else:
        print("This operation isn't supported by me:( Try other")

def is_float(x):
    try:
        float(x)
        return True
    except ValueError:
        return False


i = 0
print("Hi! Welcome to Easy Calculator!")
while i == 0:
    print("Please, enter one of these operations: +, -, *, /, ^ or 'exit' for exit:")
    operation = input()
    if operation == 'exit':
        i = 1
        print("Goodbye!")
        break
    else:
        print("Enter the first number:")
        a = input()
        if is_float(a):
            a = float(a)
        else:
            print("Incorrect number!")
            continue
        print("Enter the second number:")
        b = input()
        if is_float(b):
            b = float(b)
        else:
            print("Incorrect number!")
            continue

    if operation == '/' and b == 0:
        print("Oooops! Divide-by-zero isn't supported by me:( Try other numbers or operation!")
    elif operation == '+':
        print(a+b)
    elif operation == '-':
        print(a-b)
    elif operation == '*':
        print(a*b)
    elif operation == '/':
        print(a/b)
    elif operation == '^':
        print(a**b)
    else:
        print("This operation isn't supported by me:( Try other")
