Y9

5h: Use iteration (for statements) to iterate over list items

Keywords:
Python
Test your self on these keywords and definitions using the games below or Play random game
KeywordDefinition
for statementa type of iteration where you can repeat a block of code for each value in a list
indentationmoving a block of code away from the left side of the code editor so that python knows which lines of code to repeat
iterationrepeating a block of code multiple times
lista data structure which can store multiple values in a specific order
list itemsthe values stored in a list
rangepython built in function which generates something similar to a list of numbers that starts and stops at certain values
variablenamed location in memory that stores a value. The name stays the same but the value can change when the program runs
Keyword games:
Resources: