Iteration (for loops) Flashcards

1
Q

What are loops also known as?

A

Iteration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 types of loops?

A

for + while

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

for loops

A

repeat things a set of times

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

while loops

A

repeats something until no longer True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

for i in range (x):

A

x= integer so (10)== looping 10 times

How well did you know this?
1
Not at all
2
3
4
5
Perfectly