Как найти максимальное число из списка 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
mylist = [1, 7, 3, 12, 5]
min_value = min(mylist)
max_value = max(mylist)
temp = [[0,1],[0,2,3], [1], [1,2,3,4]]
print(max(map(len,temp)))
#4
#!/usr/bin/python
list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
print "Max value element : ", max(list1)
print "Max value element : ", max(list2)