Loops and Iterations

How someone help me understand how the output of the problem below is “0,1,2”? I just can’t read the code?

(https://www.freecodecamp.org/learn/scientific-computing-with-python/python-for-everybody/loops-and-iterations)*

Is that surprising for you? Would you rather say some other answer should be correct? Try going by hand through the code step-by-step and see what you are getting.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.