How to get Minimum

Asked 2 years ago, Updated 2 years ago, 15 views

Assuming that you do not know the number of alist elements when you need to obtain the minimum value of the following alist and print it out.

alist = [3, 76, 44, 24, 5, 38, 64, 21, 1, 5, 7, 9]

I'm a beginner, so I don't know what to do T.T. Please help meㅠ<

python

2022-09-20 19:49

1 Answers

>>> alist = [3, 76, 44, 24, 5, 38, 64, 21, 1, 5, 7, 9]
>>> min(alist)
1

Do your homework yourself.


2022-09-20 19:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.