New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to perform calculations in python code playground?
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
+ 2
The playground is not a shell so to do calculations you need to assign a value and print
s = 1 + 1
print(s)