Calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Calculator

how can we run a calculator

22nd Nov 2016, 2:34 PM
Ken Castillo
Ken Castillo - avatar
2 Answers
+ 1
There's a built-in method eval() in python, which evaluates the given python expression. So, you can just write something like that: >>> eval(input()) 2+3*5/6 4.5
22nd Nov 2016, 4:11 PM
donkeyhot
donkeyhot - avatar
0
Please See My New Code Basic Calculator (Web) yes bro it using eval in real very less people are friendly with eval
19th Dec 2016, 1:54 PM
Bruh