0
Calculator
How do you make a calculator on Python?
5 Respostas
+ 6
Your code looks very nice 👍👍👍
+ 3
There are countless samples of calculators here in this place, so please use the search bar.
+ 2
Zori take a python course or take a look at this threads shed.
https://www.sololearn.com/discuss/1521539/?ref=app
https://www.sololearn.com/discuss/1951671/?ref=app
https://www.sololearn.com/discuss/1951554/?ref=app
https://www.sololearn.com/discuss/209473/?ref=app
https://www.sololearn.com/discuss/1714841/?ref=app
https://www.sololearn.com/discuss/1871975/?ref=app
https://www.sololearn.com/discuss/1807631/?ref=app
https://code.sololearn.com/c9ITruJqiFfW/?ref=app
https://code.sololearn.com/ccTTwf1qB7xe/?ref=app
https://code.sololearn.com/cvr40NmkjvOw/?ref=app
https://code.sololearn.com/cuIDOtJwkwwB/?ref=app
+ 2
I have made in this way!!!!
https://code.sololearn.com/cxfXkp387l4C/?ref=app
0
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.