Data Types Conceptual Questions
Questions
Conceptual
str
literals in Python can be surrounded in either single-quote characters ('like this'
) or double-quote characters ("like this"
), though in COMP110 we prefer the double-quotes. (T/F)
TRUE
and FALSE
are valid bool values in Python. (T/F)
- An
int
literal can begin with a zero, but cannot end with a zero. (T/F)
- What function can we use to identify the type classification of any object in Python?
Solutions
Solutions
Conceptual Solutions
- T
- F
- F
type()
Contributor(s): Alyssa Lytle, Megan Zhang, David Karash