Python’s Built-in Functions with Code Examples
If you grew up in another language like me, you may have seen Python’s dynamic typing and indentation style blocks. At a closer look one finds an expressive language with features like shorthand syntax, immutable built-in types, lazy evaluation, object-oriented and functional programming, and a large standard library.
One way to quickly pick up Python is by its global built-in functions, used for built-in object constructors e.g.
set(), modifying instance objects, iteration functionality e.g.
any(), math utilities, data conversions, metadata, and more.
In this post we’ll cover Python’s built-in functions with brief descriptions, non intuitive arguments, return types, and code examples. In Python 3.9.0 there are 68 functions. I grouped them into buckets.
- Built-In Types
- Instance Objects
- Class Level
Continue reading →