Python: Concepts Flashcards
1
Q
dynamic typed
A
assigns type to variable based on the type of value assigned
2
Q
strong typed
A
type does not change unexpectedly; type conversion is explicit
number = 1
string = 1 + “st” # throws TypeError
https://stackoverflow.com/questions/11328920/is-python-strongly-typed
3
Q
collection
A
bags of values
(2) sets, dictionaries
4
Q
sequence
or “sequential collections”
A
a collection whose items can be accessed sequentially (in some order)
(7) strings, bytes, lists, tuples, bytearrays, buffers & range objects