LearnPy Hub
← If…Else problems
Medium

Mini Calculator

Read a, an operator (+, -, *, /) and b, each on its own line. Print the result; for division by zero print Error.

Input

a, op, b.

Output

The result.

Sample 1

Input
6
+
3
Output
9.0

Sample 2

Input
6
-
3
Output
3.0
solution.py
Output appears here
Mini Calculator · Python practice problem · LearnPy Hub