Calculator | Sololearn: Learn to code for FREE!



How do you make a calculator on Python?

3/19/2020 10:37:34 AM


5 Answers

New Answer


Your code looks very nice πŸ‘πŸ‘πŸ‘


There are countless samples of calculators here in this place, so please use the search bar.


Zori take a python course or take a look at this threads shed.


I have made in this way!!!!


Zori A simple method is using the eval function which u can use to make a calculator within two lines. a = input() print(eval(a)) If someone inputs a string like 2 * 3 + 4, EVAL will consider them as numbers. Otherwise you can use IF ELSE to manually make a calculator.