Answers for "python find the highest number in a list"

9

python find index of highest value in list

numbers = [5, 4, 7, 3, 9, 1, 2]
biggest_number = max(numbers)
print(numbers.index(biggest_number))
Posted by: Guest on October-05-2020
1

python find largest value in list

numbers = [1, 5, 2, 10, 9, 3, 5]
print(max(numbers))
Posted by: Guest on November-08-2021
0

python how to find the highest even in a list

def highest_even(li):
  evens = []
  for item in li:
    if item % 2 == 0:
      evens.append(item)
  return max(evens)

print(highest_even([10,2,3,4,8,11]))


# Building a function to find the highest even number in a list
Posted by: Guest on June-29-2020

Code answers related to "python find the highest number in a list"

Python Answers by Framework

Browse Popular Code Answers by Language