How would be to program something that tell me which number of 4 is the highest and the lowest? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How would be to program something that tell me which number of 4 is the highest and the lowest?

30th Jan 2017, 5:41 PM
Seiko 2
Seiko 2 - avatar
2 Answers
+ 2
x = [1, 2, 3, 4] highest = max(x) lowest = min(x)
30th Jan 2017, 6:13 PM
Kawaii
Kawaii - avatar
0
thanks
30th Jan 2017, 6:44 PM
Seiko 2
Seiko 2 - avatar