Iteration

studied byStudied by 5 people
0.0(0)
Get a hint
Hint

loop

1 / 7

8 Terms

1

loop

used for when programmers want a statement to execute repeatedly

New cards
2

nested loop

a loop that is found inside a loop

New cards
3

while loop

while the condition is true the loop continues to execute, otherwise it exits the loop

New cards
4

infinite loop

the loop isn’t structured correctly, or there is an error in the logic which causes the loop to execute forever

New cards
5

for-loop

The condition is first checked to see if it is true, the statement will execute, and the steps will continue to repeat in the loop until the statement becomes false, then the loop ends

New cards
6

definite iteration

loop continues for a known amount of time

New cards
7

indefinite iteration

loop continues for an unspecified number of times, could be forever

New cards
8

example of until when

n = 0

while n < 10:

n = n+1

print(n, ”Computers”)

New cards

Explore top notes

note Note
studied byStudied by 35 people
... ago
5.0(1)
note Note
studied byStudied by 29 people
... ago
5.0(2)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 119 people
... ago
5.0(1)
note Note
studied byStudied by 457 people
... ago
5.0(6)
note Note
studied byStudied by 60 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (58)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (150)
studied byStudied by 42 people
... ago
5.0(1)
flashcards Flashcard (21)
studied byStudied by 39 people
... ago
5.0(2)
flashcards Flashcard (64)
studied byStudied by 57 people
... ago
5.0(1)
flashcards Flashcard (21)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (71)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (64)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 1173 people
... ago
4.8(5)
robot