0

The simplest calculator

Write a program that can perform arithmetic operations on two real numbers and terminate at the user's request

31st Oct 2017, 4:35 PM
Daniyar
2 Antworten
+ 1
Thx to Python's simplicity, single line code does the trick. But then remember, python cli itself acts as a simple calculator... print(eval(input()))
31st Oct 2017, 5:02 PM
Anil
Anil - avatar