What can I add to the calculator? Very interesting and that fantasy is over.

print("Выберите Что Хотите Сделать:") print("1 Сложение") print("2 Вычитание") print("3 Умножение") print("4 Деление") user = input("") if user == "1": number_one = float(input("Первое Число: ")) number_two = float(input("Второе Число:")) print(number_one + number_two) if user == "2": number_one = float(input("Первое Число: ")) number_two = float(input("Второе Число:")) print(number_one - number_two) if user == "3": number_one = float(input("Первое Число: ")) number_two = float(input("Второе Число:")) print(number_one * number_two) if user == "4": number_one = float(input("Первое Число: ")) number_two = float(input("Второе Число:")) print(number_one / number_two) 

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants andreymal , jfs , Kromster , Viktorov , cheops 26 Dec '17 at 5:42 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • At least in a cycle to wrap it all. - Mike Ru
  • User Interface - Stranger in the Q

2 answers 2

Look at the usual accounting calculator.
- memorize
- learn from memory
- memory operation (+ -)
- interest
...

    Try to look at the sympy . There you can do this:

     >>> solve(x**2 - 2, x) [-√2, √2]