March 2025
Intermediate to advanced
584 pages
15h 31m
English
This chapter covers
By now you’ve learned the basic Python types as well as how to create your own data types using classes. For many languages, that would be pretty much it as far as data types are concerned. But Python is dynamically typed, meaning that types are determined at runtime, not compile time. This fact is one of the reasons Python is so easy to use. It also makes it possible, and sometimes necessary, to compute with the types of objects (not just the objects themselves).
Fire up a Python session and try out the following:
type(5) ...
Read now
Unlock full access