Python Flashcards

1
Q

Dictionaries

A

A datatype comprised of key:value pairs.

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

Modules

A

Reusable python files that you can import to simplify your code.

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

List

A

A data structure that stores multiple items in a single variable.

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

Files

A

A way to save python code and reuse it.

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

Class

A

A blueprint for creating objects. It defines the methods and attributes of an object.

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

Difference between a list and a tuple

A

Lists are mutable. Tuples are immutable.

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