Как найти максимальное число из списка Python
num = [1,2,3,4,5]
print(max(num))
Excited Earthworm
num = [1,2,3,4,5]
print(max(num))
Numbers = [90,78,34,50,100,99]
higest_number = 0
for number in Numbers:
if number > higest_number:
higest_number = number
def Max_min(list_of_number):
largest_number = 0
for num in list_of_number:
if num > largest_number:
largest_number = num
return largest_number
#!/usr/bin/python
list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
print "Max value element : ", max(list1)
print "Max value element : ", max(list2)