0
Calculator
How to make a calculator that takes multiple numbers and operators and parentheses? If we give this expression as an example, (2 * 3) + 4 ** 2 will print the output
7 Answers
+ 6
Fereshte a really lengthy equation input type can be created in one line
print(eval(input()))
+ 1
من فضلك لا ترسل بريدا عشوائيا إلى منتدى الأسئلة والأجوبة ادم محمد الصالح التحذير الثاني
0
Yes but I can just create a calculator with 2 numbers but for more I have no idea😣
0
I know it but it is a project! I can't use it
0
Do it like you would do in real life. What comes first and so on.
Get input from the user.
Split the string into terms and sort them in priority.