Computer Science, asked by YASHWENTH, 5 months ago

how to create a calculator in python​

Answers

Answered by Deepgaming5230
8

In this example you will learn to create a simple calculator that can add, subtract, multiply or divide depending upon the input from the user. To understand this example, you should have the knowledge of the following Python programming topics: Python Functions. Python Function Arguments.

Answered by Anonymous
2

Answer:

This Input will make a simple calculator in Python-3 .

Explanation:

operation = input(''' Please type in the math operation you would like to complete: + for addition - for subtraction * for multiplication / for division ''') number_1 = int(input('Enter your first number: ')) number_2 = int(input('Enter your second number: ')) if operation == '+': print('{} + {} = '.

Follow Me ✌️✌️✌️

.

Similar questions