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.
YOU MIGHT ALSO LIKE...
Array and Loop Review
AP Computer Science: Loops and Other Forms of Control Structure (Java)
OTHER SETS BY THIS CREATOR
y9 topics: 1.4 networks y9, 1.6 System Security y9, 2.1 Algorithms - y9 revision v2, computer history v2
1.6 System Security y9
2.1 Algorithms - y9 revision v2
computer history v2
THIS SET IS OFTEN IN FOLDERS WITH...
2.6 Data Representation (ALL) - GCSE OCR 9-1
Data Representation, Data Representation
Programming - Python Review y8