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 41 people
... ago
4.5(2)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
5.0(1)
note Note
studied byStudied by 3 people
... ago
5.0(1)
note Note
studied byStudied by 15 people
... ago
5.0(1)
note Note
studied byStudied by 14 people
... ago
5.0(1)
note Note
studied byStudied by 144 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (40)
studied byStudied by 31 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (52)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (52)
studied byStudied by 178 people
... ago
5.0(7)
flashcards Flashcard (79)
studied byStudied by 80 people
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (299)
studied byStudied by 52 people
... ago
5.0(1)
robot