Iteration
AP Computer Science Principles · Flashcards
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 38
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the purpose of 'range()' in a 'for' loop.
QUESTION
Find the error: for i in [1,2,3]: print(i)
QUESTION
What happens when 'continue' is executed in a loop?
Tap to flip before you grade
ANSWER
Skips the current iteration and continues with the next. It jumps directly to the next loop iteration.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card