Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
504 B
1
Indexable
Never
number_1 = int(input('Enter your first number: '))
operation = input("operator ")

#number_1 = int(input('Enter your first number: '))
number_2 = int(input('Enter your second number: '))

if operation == '+':
    print ( number_1 + number_2)

elif operation == '-':
    print(number_1 - number_2)

elif operation == '*':
    print(number_1 * number_2)

elif operation == '/':
    print(number_1 / number_2)
elif operation == '**':
    print(number_1**number_2)

else:
    print('Operator does not exist')