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 246 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 46 people
... ago
5.0(1)
note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 116 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (32)
studied byStudied by 26 people
... ago
5.0(1)
flashcards Flashcard (139)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (163)
studied byStudied by 43 people
... ago
5.0(4)
flashcards Flashcard (53)
studied byStudied by 45 people
... ago
5.0(2)
flashcards Flashcard (402)
studied byStudied by 60 people
... ago
5.0(2)
flashcards Flashcard (50)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 3 people
... ago
5.0(1)
robot