How do I write math operations in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I write math operations in python?

I have just started with the python course and I have done a lesson about writing math operations in this language. But when I want to write it in the playground it just doesn't read the code. What do I have to do?

12th Sep 2019, 11:02 PM
Lucas Dalmagro
Lucas Dalmagro - avatar
3 Answers
+ 1
You have to Follow the steps in the tutorial and code along.
13th Sep 2019, 1:28 AM
Qudusayo
Qudusayo - avatar
0
You have to output it using the print function. For example: print(1+1)
12th Sep 2019, 11:04 PM
HonFu
HonFu - avatar
0
For a more "professional" approach try sympy (after finishing the introductory course).
13th Sep 2019, 5:11 AM
Thoq!
Thoq! - avatar