filmov
tv
min() max() sum() function of list in python | python list #pythoncode | python #python #shorts
Показать описание
min() max() sum() function of list in python | python list #pythoncode, computer science, #python #shorts
Create a list with 10 value and find the
smallest , largest and sum of
all the number in the list.
list = [11,55,22,58,87,3,23,8,104,44]
list = [11,55,22,58,87,3,23,8,104,44]
print("Smallest numbet is: ",min(list))
print("largest number is: ",max(list))
print("sum of number is: ",sum(list))
output:
Smallest numbet is: 3
largest number is: 104
sum of number is: 415
Create a list with 10 value and find the
smallest , largest and sum of
all the number in the list.
list = [11,55,22,58,87,3,23,8,104,44]
list = [11,55,22,58,87,3,23,8,104,44]
print("Smallest numbet is: ",min(list))
print("largest number is: ",max(list))
print("sum of number is: ",sum(list))
output:
Smallest numbet is: 3
largest number is: 104
sum of number is: 415