1/14
These flashcards cover key concepts and terms related to repetition structures in Python programming, including loops and their functionalities.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Makes the computer repeat included code as necessary.
Repetition Structure
Uses a true/false condition to control the number of times the loop iterates.
Condition-Controlled Loop
Repeats a specific number of times.
Count-Controlled Loop
A condition-controlled loop that executes while a defined condition is true.
While Loop
One execution of the body of a loop.
Iteration
A loop that does not have a way to stop and repeats until interrupted.
Infinite Loop
A variable used to count the number of times a loop iterates.
Counter Variable
The action of setting the counter variable to a starting value before the loop begins.
Initialization
A special value that marks the end of a sequence of items.
Sentinel
Loops that ensure the program receives valid input from the user.
Input Validation Loop
Special operators designed for shorthand assignment operations.
Augmented Assignment Operator
A statement that causes the loop to terminate immediately.
Break Statement
A statement that causes the current iteration of a loop to end early.
Continue Statement
An optional clause in loops that executes when the loop finishes normally, without a break.
Else Clause with a Loop
A method of using loops and commands to draw shapes and designs with a 'turtle' object.
Turtle Graphics