Answer the question
In order to leave comments, you need to log in
How to perform an arithmetic operation on user input?
There is input:
The user enters, for example:
12 + 4 * 8
How to display the answer of this example?
a = input(">>> ")
Answer the question
In order to leave comments, you need to log in
Everything is simple
Parser of mathematical expressions
Algorithm for parsing arithmetic expressions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question