unit 6 vocab Flashcards
list
an ordered collection of elements
element
an individual value in a list that is assigned a unique index
while loop
repeatedly runs a block of code while boolean expression is true, once boolean becomes false it will stop
for loop
condenses while loop in to a shorter statement, once boolean becomes false loop will end
iteration
a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met
infinite loop
occurs when boolean expression will never evaluate to false
filter
create a subset of elements from original list
reduce
reduce the list down to a single element , ex: the smallest number in the list
traversal
the process of accessing each item in a list at one time (for loop)