[Solved] python calculator with two float numbers as parameters [closed]
Hope this code may help you def add(a,b): print(a+b) def subract(a,b): print(a-b) def multipy(a,b): print(a*b) def divide(a,b): print(a/b) ch=”y” while ch==”y” or ch==”Y”: x = float(input(“first number : “)) y = float(input(“second number: “)) print(“…..MENU…….\n 1.Add\n 2.Subtract\n 3.Multiply\n 4.Divide\n”) op=int(input(“Enter your choice : “)) if op==1: add(x,y) elif op==2: subract(x,y) elif op==3: multipy(x,y) elif op==4: … Read more