Unit 7 Flashcards

Loops (cont.)

1
Q

7.3 - Nested Loops

What is a nested loop?

A

A loop within a loop

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

7.3 - Nested Loops

What does ord() and chr() do?

A

ord() - character to integer
chr() - integer to character

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

7.4 - Developing Programs Incrimentally

What is a FIXME comment?

A

a comment indicating code that needs to be fixed in the future

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

7.5 - enumerate(); Index & Value When Looping

What does enumerate() do?

A

retrieves the index & element value; acts as a tuple

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

7.5 - enumerate(); Index & Value When Looping

What is unpacking?

A

performing multiple assignments at once

ex. num1, num2 = [350, 400]

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