Repetition Structures cause statement(s) to execute repeatedly.
39
Embed
Repetition Structures - GramercyDatadata items. Statement(s) execute once for each item in the sequence. The for loop the for loop with strings Assignment Could you please …
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Repetition Structures
cause statement(s) to execute repeatedly.
Agenda1. The while loop - a condition-controlled loop2. The for loop - a count-controlled loop
3. Infinite loops
4. The range() function is often used with for loops.
5. The Augmented Assignment Operators: += -= *= /= %=