I don't know how to make python "scan" through the list for a candidate and then go back to the loop again to find another candidate for the min.
candidate = 0
maximum = 0
a = [12, 10, 50, 100, 24]
for i in len(s):
for j in range(len(s)):
解决方案
You can use the builtin min function to do this
a = [12, 10, 50, 100, 24]
print min(a)
If you really want to use loop,
minimum = a[0]
for number in a:
if minimum > number:
minimum = number
print minimum
You can use max function to find the maximum in a list.