+ 2

Create calculation formulas with python

I’m a beginner of python . Is it easy to write programs to create calculation formulas from list[numbers] and list[*,+,=,-,/,etc...]? Someone help me!

19th Jan 2019, 6:02 PM
Shumpei Sori
Shumpei Sori - avatar
3 Respuestas
+ 6
Yes, you can do List = [1,2,3] print((List[0]+List[1])*List[2])
21st Jan 2019, 1:28 AM
Adler Vuong
Adler Vuong - avatar
+ 5
What do you want to do with python? Put a sample of the code or what you want to happen.
19th Jan 2019, 6:50 PM
Adler Vuong
Adler Vuong - avatar
+ 1
It can create the calculation formulas from numbers and operators. like this...  Input numbers are [1,2,3] & answer is [9] Run code output → (1+2)*3 I'm trying to create it now.
20th Jan 2019, 6:59 AM
Shumpei Sori
Shumpei Sori - avatar