
python - max value of list without max () method - Stack Overflow
Jun 16, 2014 · I need to find the max value of a list but I can't use the max () method. How would I go about doing this? I'm just a beginner so I'm sure this is pretty easy to find a workaround, however I'm …
Find Max and Min in List without max () and min () in Python
Apr 10, 2024 · A step-by-step guide on how to find the max and min values in a list without using max() and min() in Python.
Python - max() function - GeeksforGeeks
Jul 15, 2025 · We can use max () function to locate the largest item in Python. Below are some examples: Example 1: Finding the Maximum of 3 Integer Variables The code initializes three …
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.
Python - Min and Max of a List (without using min/max function)
Edge Cases: Consider cases with lists containing negative numbers, duplicates, or very large/small numbers to ensure the function handles them correctly. Using this method, you can find the minimum …
How to Find Largest/Smallest List Number Without max ()/min () in Python
While Python's built-in max() and min() functions are the standard way to find the largest and smallest elements in a list, understanding how to achieve this manually is a great programming exercise and …
python - Find maximum value and indices of a maximum without using max ...
Sep 3, 2020 · argmax(a) The maximum value of the array is 4 and is located at index 4. I'm trying to create something similar for any size matrix without using built in max functions. Can someone help …
How to find the largest number in a list without max function in Python
Aug 23, 2021 · Recently, I wrote a post on finding the minimum in a list. Many people wanted to know how to find the maximum instead of the minimum.
Python: Function returning highest value in list without max ...
Dec 1, 2016 · I need to write a function that takes a list of numbers as the parameter and returns the largest number in the list without using max(). I've tried: def highestNumber(l): myMax = 0 if myMax &...
Python Program to Find Largest Number in a List
Nov 11, 2025 · Given a list of numbers, the task is to find the largest number in the list. For Example: Input: [10, 24, 76, 23, 12] Output: 76 Below are the different methods to perform this task: Using max …