0

How do you create a calculator with python?

Python question

24th Feb 2018, 5:12 AM
Xander Lim
Xander Lim - avatar
4 Answers
+ 9
print(eval(input())) #the shortest way possible
24th Feb 2018, 6:33 AM
Ahri Fox
Ahri Fox - avatar
+ 6
Depending on what code complexity you had in mind, it can be a simple eval(input()) one-liner or a fully-fledged GUI-based application. Pick your favourite :)
24th Feb 2018, 6:33 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
thanks for your answer.
2nd Mar 2018, 11:13 AM
Xander Lim
Xander Lim - avatar
0
thanks to you all. Hope you enjoy your day!
2nd Mar 2018, 11:14 AM
Xander Lim
Xander Lim - avatar