PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cout = 'y'
while cout.lower() == 'y':
def add(x,y):
return x + y
def sub(x,y):
return x - y
def multiply(x,y):
return x * y
def div(x,y):
return x / y
print('SELECT ANY ONE BELOW')
print('')
print('1 = add')
print('2 = subtract')
print('3 = multiply')
print('4 = divide')
choice = input('enter choice(1/2/3/4):')
num1 = int(input('enter your first number here:'))
num2 = int(input('enter your secound number here:'))
if choice == '1':
print(num1, '+', num2, '=', add(num1,num2))
elif choice == '2':
print(num1, '-', num2, '=', sub(num1,num2))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run