68. For Loops? Flashcards

1
Q

what does for do
for item in ‘item to Mastery’ :

A

an iterable allow to iterate
and goes to every bookshelf,(not all in one line

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

it can be used with . . .

A

tuples, dict, lists

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

what if you do

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