How to perform calculations in python code playground? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to perform calculations in python code playground?

23rd Apr 2019, 10:35 AM
Spongebob
2 Answers
+ 2
Calculations would work like any Python IDE You do the calculation, then use the print() function to display the results. After you have the code ready, run it๐Ÿโ˜• Here is an example: https://code.sololearn.com/c0vuQO31iS5V/?ref=app
23rd Apr 2019, 10:51 AM
Trigger
Trigger - avatar
+ 2
The playground is not a shell so to do calculations you need to assign a value and print s = 1 + 1 print(s)
23rd Apr 2019, 10:52 AM
Mike Buttery
Mike Buttery - avatar