my_list1 = [30,34,56] my_list2 = [29,500,43]
How to I check if all values in list are >= 30? my_list1 should work and my_list2
my_list1
my_list2
There is a builtin function all:
all
all (x > limit for x in my_list)
Being limit the value greater than which all numbers must be.