Answers for "Q1. Create a calculator where user have a menu to perform addition / subtraction / multiplication / division / display tables . Using loops in python."

-1

python calculator

print("Choose operator (+,-,*,/):")
mode = input()
print("Choose first int:")
x = int(input())
print("Choose second int:")
y = int(input())

print("Your result:")
if mode == "+":
    print(x+y)
elif mode == "-":
    print(x-y)
elif mode == "*":
    print(x*y)
elif mode == "/":
    print(x/y)
Posted by: Guest on November-02-2020

Code answers related to "Q1. Create a calculator where user have a menu to perform addition / subtraction / multiplication / division / display tables . Using loops in python."

Python Answers by Framework

Browse Popular Code Answers by Language