calculator with custom function in python code example
Example 1: calculator in python
Select operation.
1.Add
2.Subtract
3.Multiply
4.Divide
Enter choice(1/2/3/4): 3
Enter first number: 15
Enter second number: 14
15.0 * 14.0 = 210.0
Example 2: calculator in python
def mutiply (x):
return _*x
o = mutiply(_)
print(o)