+ 1

How to perform calculations in python code playground?

23rd Apr 2019, 10:35 AM
Spongebob
2 Réponses
+ 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