A calculator
Task
The program reads three lines: a whole number, an operation sign (+, -, * or /) and a second whole number. It prints the result of the operation - for division the result of the / operator, a decimal number.
When dividing by zero it prints Delenie nulou nie je možné. (division by zero is not possible) and for any other operation it prints Neznáma operácia. (unknown operation).
Examples
Input
7 + 5
Expected output
12
After you submit, 7 hidden tests will also check your solution: subtraction, multiplication, division, division without remainder, division by zero, zero divided by a number, an unknown operation.
You need to know
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.