For loops Flashcards

1
Q

What does a for loop do

A

A for loop repeats the code a given amount of time.

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

3 parameters of a loop

A

(x,y,z)
x = Starting at 0
y = Ends before y
z = How much it increments

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

Nested for loop

A

First loop is the outer loop with the second loop being the inner loop

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