Counter-controlled repetition with a for loop uses the ___ function.
counter()
range()
while()
loop()
13 answers
range()
A ___ loop is generally used to perform definite repetition.
for
slow
fast
while
for
slow
fast
while
for
When you build a list from another list, the technique is called a ___.
building
cloning
wrapping
mapping
building
cloning
wrapping
mapping
mapping
The step-by-step approach we used to search through lists with a for loop today was called an ___.
algorithm
logarithm
aphorism
syllogism
algorithm
logarithm
aphorism
syllogism
algorithm
Definite loops run for a ___ number of times.
predicated
preferred
prehistoric
predetermined
predicated
preferred
prehistoric
predetermined
predetermined
If we want to loop through a list of foods, how would we do it with the for loop?
for foods:
# do something with the food
for food in foods:
# do something with the food
for foods in foods:
# do something with the food
for foods in food:
# do something with the food
for foods:
# do something with the food
for food in foods:
# do something with the food
for foods in foods:
# do something with the food
for foods in food:
# do something with the food
for food in foods:
# do something with the food
# do something with the food
___ must be unique in a dict.
keys
indices
values
lists
keys
indices
values
lists
keys