OCU Test - Day 2 Review Flashcards

1
Q

What do we call objects that can return their members one at a time?

A

Iterables

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

What are Python lists similar to in other languages?

A

Arrays

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

Which types of sequences are immutable?

A

Tuples, strings

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

What are generator expressions?

A

Iterables that can only be iterated through once

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

When files are read into python, what does python store them in?

A

File objects

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