+ 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
4 Respuestas
+ 3
print(min(S))
+ 1
Ok , i try and gives me "no output"
+ 1
That worked, thanks, Jesus Crist bless you
0
Just put the the list in the function:
min(S)
max(S)