Grok Worksheet 7: Review Flashcards

1
Q

Python Data Model: “Everything in Python is an __________ with a __________, an __________, and an unchangeable __________.”

A

“Everything in Python is an OBJECT with a VALUE, an ID, and an unchangeable TYPE.”

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

What are the two major categories of types?

A

Numbers and sequences

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

Are Booleans considers apart of the number or sequence super-category? Expand.

A

Number.
True = 1
False = 0

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