+ 1

Python print function

Hello, Do you know why I have to use print function for simple math calculations or outputting variable values in Sololearn playground or other mobile apps for programming? For example: print(1 + 2) a = 3 print(a) While doing the same on PC for example in Jupiter or IDLE, I can do the same without print. For example: 1+2 a

1st Aug 2022, 8:09 AM
Ruslan Guliyev
Ruslan Guliyev - avatar
2 ответов
+ 7
Ruslan Guliyev , there are 2 modes to work with interpreters: > direct interactive mode, like as you described. but this is limited to only one or a few lines of code at a time. this is not supported by sololearn playground > editor / ide mode. you can write complete codes and then run them. codes can be saved, re-loaded and run again some mobile apps also have a direct interactive mode like pydroid
1st Aug 2022, 8:59 AM
Lothar
Lothar - avatar
+ 1
Lothar, thank you!
1st Aug 2022, 7:44 PM
Ruslan Guliyev
Ruslan Guliyev - avatar