I want to know the least number of this list, which I present below.
I do not know where I'm fooling myself, I think I need to convert the list.
Example:
lista=[1, 3, 5]
def min(values):
smallest = None
for value in values:
if smallest is None or values < smallest:
smallest = value
return smallest
menorvalor=min(lista)
The error you give me is this
TypeError: '<' not supported between instances of 'list' and 'int'