Types
This will be discussed in Part II
Think of these as conversion functions
>>> float(‘4.2’), int(4.2), str(4.2)
(4.2, 4, ‘4.2’)
>>> list(“abc”), tuple({‘a’:1, ‘b’:2})
([‘a’, ‘b’, ‘c’], (‘a’, ‘b’))
But note that these are also types:
>>> isinstance(4, int)
1