About 709 results
Open links in new tab
  1. Python max () Function - W3Schools

    Definition and Usage 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. 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

  5. Python max () Function Guide: Find Largest Value - PyTutorial

    Feb 4, 2026 · Learn how to use Python's max () function to find the largest item in iterables, with examples for numbers, strings, lists, and custom objects.

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

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

  8. Python max Function - Complete Guide - ZetCode

    Apr 11, 2025 · We'll cover numbers, strings, custom objects, and practical examples. The max function returns the largest item from an iterable or two or more arguments. It can accept a key function for …

  9. maxPython Function Reference

    Find out how the max function works in Python. Return the largest item in an iterable or the largest of two or more arguments.

  10. Python max () - Programiz

    To find the largest item in an iterable, we use this syntax: max() returns the largest element from an iterable. Output. If the items in an iterable are strings, the largest item (ordered alphabetically) is …