Python's built-in functions cover various programming tasks, including math operations, data processing, and handling input/output. This tutorial delves into these functions, providing practical examples and usage scenarios. Learn about functions like abs() for absolute values, divmod() for quotient-remainder pairs, min() and max() for finding minimum and maximum values, and more. The tutorial also discusses how to manipulate basic and collection data types, providing a comprehensive guide to Python’s built-in capabilities.

2h 1m read timeFrom realpython.com
Post cover image
Table of contents
Determining the Number of Items in a Container: len()Reversing and Sorting Iterables: reversed() and sorted()Determining the Truth Value of Items in Iterables: all() and any()Creating Ranges of Integer Values: range()Enumerating Items in Loops: enumerate()Extracting Slices or Portions of Sequences: slice()Zipping Iterables for Parallel Iteration: zip()Building and Consuming Iterators: iter() and next()Filtering and Mapping Iterables: filter() and map()

Sort: