Skip to content

Tag: arraylist

Python: smallest number in list

I’m new to python and i don’t know how to find the smallest number in each array. The input is [ [2], [3, 4], [6, 5, 7], [4, 1, 8, 3] ] and the output should be [2, 3, 5, 1]. I have try this: And the output that i got is [2], i have no idea about this. Please