New course! Every coder should learn Generative AI!
Try a free lesson+ 1
check this out
https://code.sololearn.com/cb8qY3FceYR2/?ref=app
+ 3
Prefix, postfix doesn't affect on for loop as it will not take return values
x++ gives old value
++x gives new value
You can see the difference in assigning the values