File size: 443 Bytes
c346e3d
 
 
 
 
 
 
 
 
 
 
 
 
4ddfe35
 
 
 
 
c346e3d
 
 
 
 
 
 
cbc9574
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
def add(x, y):
    return x + y

def subtract(x, y):
    return x - y

def multiply(x, y):
    return x * y

def divide(x, y):
    if y == 0:
        return "Cannot divide by zero!"
    return x / y
def greater(x,y):
    if x > y:
        return x
    else:
        return y
if __name__ == "__main__":
    print("Select operation:")
    print("1.Add")
    print("2.Subtract")
    print("3.Multiply")
    print("4.Divide")

    print(add(3,5))