Python Micro Project of Calculators
Python Micro Project of Calculators
On
Project Title:-Calculator
By
Name :- Sarthak n
Enrollment No: 226040316045
January 2023
Table of Contents
1.Introduction
1.1 Arithmetic Operator
1.2 Functions of Arithmetic calculator
1.3 How it is used
2.1 Anaconda
2.3 Python
2.4.1 Pandas
2.4.2 Matplotlib
2.4.4 TensorFlow
2.4.5 Seaborn
Input op
Input n1,n2
Switch op
Stop
3.2 Algorithm
START
Step1: [Enter first number] read num1
if c == "+":
print (a + b)
elif c == "-":
print (a - b)
elif c == "*":
print (a * b)
elif c == "/":
print (a / b)
elif c =="%":
print (a % b)
else:
print("invalid choice")
Output:-
Enter a number: 16
Enter a number: 14
apply any operator such as +,-,/,*,%: +
33
Enter a number: 16
Enter a number: 14
apply any operator such as +,-,/,*,%: -
-1
Enter a number: 16
Enter a number: 14
apply any operator such as +,-,/,*,%: /
0.9411764705882353
Enter a number: 16
Enter a number: 14
apply any operator such as +,-,/,*,%: *
272
Enter a number: 16
Enter a number: 14
apply any operator such as +,-,/,*,%: %
16
Refrerences
[1] https://www.javatpoint.com/python-make-
simple-calculator