+ 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
2 Antworten
+ 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
+ 1
Lothar, thank you!