About 3,310 results
Open links in new tab
  1. 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.

  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. 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 …

  4. Built-in Functions — Python 3.11.15 documentation

    It is possible to crash the Python interpreter with a sufficiently large/complex string when compiling to an AST object due to stack depth limitations in Python’s AST compiler.

  5. Find the Largest and Smallest Numbers in Python

    Jan 5, 2026 · Learn how to find the largest and smallest numbers in Python using min(), max(), loops, and sorting. Expert Python tips for data analysis and optimization.

  6. numpy.max — NumPy v2.4 Manual

    You can use an initial value to compute the maximum of an empty slice, or to initialize it to a different value:

  7. The Python max () Method - AskPython

    Mar 28, 2020 · When two or more values are passed to the max() method, it returns the maximum or largest of them all. These arguments can be integers, floating-point values, characters or even strings.

  8. Python max () - Programiz

    max () Return Value max() returns the largest argument among the multiple arguments passed to it.

  9. Find Maximum in Python List: Methods & Examples - PyTutorial

    Jan 26, 2026 · Learn how to find the maximum value in a Python list using built-in functions, loops, and custom logic with clear code examples for beginners.

  10. Python max (): Return the Maximum Item

    In this tutorial, you'll learn how to use the Python max () function to return the maximum item of an iterable or maximum argument of two or more arguments.