Jan-17-2017, 08:36 AM
Hi there. I have a problem to solve in python.
I need to define an all function to see if all the elements of a list meet a certain condition. For example: all (>5) [1,2,3] = true, all (>=2) [1,1,2,2,3,3] = false. I can't find a solution, since I don't have enough knowledge of programming. Can anyone help me please?
I need to define an all function to see if all the elements of a list meet a certain condition. For example: all (>5) [1,2,3] = true, all (>=2) [1,1,2,2,3,3] = false. I can't find a solution, since I don't have enough knowledge of programming. Can anyone help me please?