How to do counting operation like 1+1 in the code playground (on phytons) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to do counting operation like 1+1 in the code playground (on phytons)

i write >>>1+1 but it become error.

27th Jul 2017, 1:57 PM
Vincent Wongso
Vincent Wongso - avatar
2 Answers
+ 3
lets say you want to keep counting info in variable x all you have to do is use x++; this means x= x +1
27th Jul 2017, 1:59 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 2
Type this as code: print (1 + 1) and then press "run"
27th Jul 2017, 5:02 PM
Paul
Paul - avatar