Misconceptions and challenges students have when creating and understanding loop constructs are often related to not yet having fully mastered other concepts. In particular, understanding the change of values assigned to variables, following the flow of execution in a more complex code structure, and the correct use of conditionals. This post discusses the following misconceptions and challenges:
M&C1. Values of variables
M&C2. Correct use of lists and arrays
M&C3. Boolean expressions
M&C4. Infinite loops (with video)
M&C5. Nested loops (with video)
M&C6. Debugging loops
M&C7. There is no best loop construct
M&C8. Using break and continue