Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Check if all values in list are greater than a certain number

>>> my_list1 = [30, 34, 56]
>>> my_list2 = [29, 500, 43]
>>> all(i >= 30 for i in my_list1)
True
>>> all(i >= 30 for i in my_list2)
False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Check #values #list #greater #number
ADD COMMENT
Topic
Name
5+9 =