Upgrade to remove ads
Python - Loops
Terms in this set (12)
This loop repeats a block of instructions as long as a given condition is True
Each repetition of the loop.
This statement allows us to execute a statement or group of statements multiple times.
This loop repeats a block of instructions and automatically assigns a variable to the current iteration.
When one or more loops are used inside another loop.
The while loop will keep repeating the indented instructions as long as this is True.
Instruction to exit out of a loop.
This function produces a list containing a sequence of numbers starting at 1 and ending at 10.
range(1, 10, 2)
This function produces a list of odd numbers from 1 to 10.
This function produces a list of decreasing numbers between 10 and 1.
Statement to skip over the part of a loop, but to go on to complete the rest of the loop.
Statement to handle a condition without the loop being impacted in any way.
THIS SET IS OFTEN IN FOLDERS WITH...
1.4 - Wired and wireless networks (ALL)
2.1 Algorithms: Sorting Algorithms
YOU MIGHT ALSO LIKE...
Chapter 3 Review
CMPSC 101 Exam 2
Engineering Exam 2 - MP3 Chapter 3
OTHER SETS BY THIS CREATOR
Python - Pygame
Python - String Operations
Scratch - Blocks
Python Basics - Conditions