While Loop code isn't optimal in the Second question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

While Loop code isn't optimal in the Second question

So in the basic stuff section we learn about the ++ operator. Why does the code question have you answer the suboptimal x=x+1 instead of having us do x++ since we know the ++ operator exists?

30th Oct 2017, 9:28 PM
Michael Holmblad
Michael Holmblad - avatar
1 Answer