About 450,000 results
Open links in new tab
  1. Python - max () function - GeeksforGeeks

    Jul 15, 2025 · We can use max () function to locate the largest item in Python. Below are some examples: The code initializes three variables with values (var1 = 4, var2 = 8, var3 = 2) and then …

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

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

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

  6. max () Builtin Function - Python Examples

    Python max () built-in function is used to find the maximum of a given iterable or, two or more arguments. In this tutorial, you will learn the syntax of max () function, and then its usage with the …

  7. Python max () Function - PerfCode

    3 days ago · max() is a built-in function in Python used to return the maximum value from an iterable or the largest among multiple arguments.

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

  9. Python max () Function - Tutorial Reference

    The max() function compares the strings lexicographically (i.e., it compares the strings character by character from left to right, alphabetically). The first string where a character is lexicographically …

  10. Unleashing the Power of the `max` Function in Python

    Jan 23, 2025 · For numerical data types like integers and floats, it simply returns the numerically largest value. For strings, it compares characters based on their Unicode code points, returning the string …