python valor más grande en la lista
>>> list = [1, 3, 2, 0]
>>> max(list)
3
max int en una lista de python
>>> L=[2,-7,3,3,6,2,5]
>>> max(L)
6
python buscar max en la lista
# Python program to find largest
# number in a list
# list of numbers
list1 = [10, 20, 4, 45, 99]
# printing the maximum element
print("Largest element is:", max(list1))
índice de python lista máxima
number_list = [1, 2, 3]
max_value = max(number_list)
# Return the max value of the list
max_index = number_list.index(max_value)
# Find the index of the max value
print(max_index)
número mínimo y máximo en la lista python
def Max_min(list_of_number):
largest_number = 0
smallest_number = 0
for num in list_of_number:
if num > largest_number:
largest_number = num
elif num < smallest_number:
smallest_number = num
return "Largest number ="+ str(largest_number) + "Smallest Number="+str(smallest_number)
valor máximo de la lista de python
#!/usr/bin/python
list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
print "Max value element : ", max(list1)
print "Max value element : ", max(list2)