+ 1

Hi, can anyone tell me how it works the maximum and minimum function, for knowing the highest number in a list

I'm trying to do the maximum and minimum test task, and they tell me that for knowing what is the highest number and the lowest number, i can use the functions that I already said before,but the problem is that it doesn't appear how I can use those functions A example for a list is this: S=[1,2,3,4,5,6,7,8,9,10] If anyone can help me I'll appreciate it

21st Feb 2021, 2:54 AM
Alan Restrepo
Alan Restrepo - avatar
4 Respuestas
+ 3
print(min(S))
21st Feb 2021, 3:03 AM
Pieter Edwards
Pieter Edwards - avatar
+ 1
Ok , i try and gives me "no output"
21st Feb 2021, 3:02 AM
Alan Restrepo
Alan Restrepo - avatar
+ 1
That worked, thanks, Jesus Crist bless you
21st Feb 2021, 3:06 AM
Alan Restrepo
Alan Restrepo - avatar
0
Just put the the list in the function: min(S) max(S)
21st Feb 2021, 2:59 AM
Pieter Edwards
Pieter Edwards - avatar