Simple Python Calculator #sharikCODEZ #sharikbashir

sharik CODEZ
Sep 16, 2023

--

Simple Python Calculator Code:

num1 = int(input("enter number"))

num2 = int(input("enter number"))

action = str(input("choose action: Add(a) Sub(s) Mult(m) Div(d) ->"))

print("the result is", end="")
if action == "a":

print(num1+num2)

elif action == "s":

print(num1-num2)

elif action == "m":

print(num1*num2)

else:

print(num1/num2)
Simple Python Calculator Code

--

--

sharik CODEZ
sharik CODEZ

Written by sharik CODEZ

0 Followers

A full stack developer and have experience in front-end and back-end development. I enjoy learning new skills and sharing my knowledge. #sharikCODEZ #coding

No responses yet