Jak znaleźć maksymalną liczbę z listy 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)
arr = [0, 1, 2, 3]
maximum_value = max(arr)
print(maximum_value) #should print 3
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
list =[-52, 56, 30, 29, -54, 0, -110]
const min =(list) => Math.min(...list)
const max =(list) => Math.max(...list)