Question: Write the simple Python program to compute a simple calculation. The user will enter the values and the operator as input and then perform the

Write the simple Python program to compute a simple calculation. The user will enter the values and the operator as input and then perform the computation based on the operator. Your program need to perform the following computations: +, -, *, /, % and //. Sample Test Data:

Please enter the first value: 12.34

Please enter the second value: 2

Your option is: + for addition - for subtraction * for multiplication / for division % for modulus // for floor division

Please enter the operator: + Sample Output:

The addition of two values is 14.34

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!