Help please with Calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help please with Calculator

Hello my friends. I am newbie and i want to get knowledge very much. I can't find information about simple calculator in russian language. Maybe somebody saw this information. I need your help so much. Thanks for your attention

21st May 2020, 8:24 PM
Blokhin Roman
Blokhin Roman - avatar
3 Answers
+ 3
Execute this and input the expression to be calculated: print(eval(input()))
21st May 2020, 8:29 PM
Lerninn
+ 1
Hello, is very easy check my code. Instrucciones for use: Enter first value example 5 Enter Second value example 4 Enter Options 1 = Adition 2 = Sustraction 3 = Multiplication 4 = Division https://code.sololearn.com/ct1Zv54p8kHd/?ref=año If you need calculate for example 25 % the formula is: value * 0.25 Sorry for my English is my Second lenguaje.
21st May 2020, 11:09 PM
Josshual A. Toro M.
Josshual A. Toro M. - avatar
0
Yes, it very easy, but i wanted to understand how to write code of calculator where will be more information about ever act(+,-,*,%, etc) But thanks so much too))))))
21st May 2020, 9:25 PM
Blokhin Roman
Blokhin Roman - avatar