аватар question@mail.ru · 01.01.1970 03:00

How to make a console calculator on Python?

I want to make a calculator on Python. When I look on the Inteet how to make a calculator on Python, I come across a type of calculators, enter the first, enter the second operator. How can you make sure that you can just write 2 + 2 and get an answer?

аватар answer@mail.ru · 01.01.1970 03:00

Here is the most functional calculator:

   print  (" "The result:" ",  eval  ( input  ( "" "enter:" ")))  

but it is very dangerous to

Latest

Similar