About 1,040,000 results
Open links in new tab
  1. Built-in FunctionsPython 3.14.2 documentation

    1 day ago · Built-in Functions ¶ The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.

  2. Python - max () function - GeeksforGeeks

    Jul 15, 2025 · Unlike the max () function of C/C++, the max () function in Python can take any type of object and return the largest among them. In the case of strings, it returns the lexicographically …

  3. Python max () Function - W3Schools

    The max() function returns the item with the highest value, or the item with the highest value in an iterable. If the values are strings, an alphabetically comparison is done.

  4. max () | Python’s Built-in Functions – Real Python

    In this tutorial, you'll learn how to use Python's built-in min () and max () functions to find the smallest and largest values. You'll also learn how to modify their standard behavior by providing a suitable key …

  5. The Python max () Method - AskPython

    Mar 28, 2020 · We can use the max() method in various ways to find the maximum or largest of a given iterable or for two or more arguments. Let us see how the method works with an iterable object, two …

  6. How to Find the Maximum Value in Python Using the max () Function?

    Jan 1, 2025 · Learn how to find the maximum value in Python using the `max ()` function. This tutorial covers its usage with lists, tuples, dictionaries, and more, with examples

  7. Python max Function - Complete Guide - ZetCode

    Apr 11, 2025 · Complete guide to Python's max function covering numbers, strings, custom objects, and practical examples of finding maximum values.

  8. max () Builtin Function - Python Examples

    In this tutorial, you will learn the syntax of max () function, and then its usage with the help of example programs. The syntax of max () function is. where. arg1, arg2, ... Values in which we have to find the …

  9. Python max Function - Tutorial Gateway

    In this section, we discuss how to use this Python max function on Tuple, List, Dictionary, and Sets with practical examples, and its syntax is: Generally, the max function key value is assigned to a default …

  10. Python max () Function - Tutorial Reference

    Python max() function returns the largest item in the iterable. If the iterable is empty, a ValueError is raised. To avoid such exception, add default parameter. The default parameter specifies a value to …