Simple Calculator With Python Programming
by Robobot in Circuits > Software
786 Views, 2 Favorites, 0 Comments
Simple Calculator With Python Programming

Hi, everyone in this instructable I made a simple calculator using python programming.
Supplies

For this project, you only require python idle.
Installing Python IDLE
.png)
For this project, you need to install python idle from the python website.
Code
.png)
Make sure you first open a new file by clicking on file button.
Code :-
a=int(input("Enter a number:"))
b=int(input("Enter another number:"))
c=input("Enter your choice operator:")
if c=='+':
print("the sum of number is",a+b)
elif c=='-':
print("the difference of the number is ",a-b)
elif c=='*':
print("the product of the number is",a*b)
elif c=='/':
print("the quotient of the number is",a/b)
else:
print(" wrong operator")
Testing Calculator
.png)
.png)
Now the final testing part : ), YES It worked.