Min()


#1

I really need some help on this. Everytime I submit it gives me the syntax :sunglasses:
Oops, try again. Your code looks a bit off. Did you complete the code on line 3? Your code threw the following error: 'int' object is not literable.
Here is my code:
minimum = min(25)

print minimum


#2

@mahadoasis8879: That's because the function min() will get the min. value of a given list. In this case, you're trying to get the min. value from an integer and such can't be iterated.


#3

Could you please give me an example.


#4

@mahadoasis8879:

minValue = min([1,2,3,4,-1,7])
print minValue # -1

#5

You need to give it some options. It needs specific number not in genaral.


#8