def check(A,B,a,b):
return A >= a and B >= b
A = [500, 500, 500]
a = [20, 0, 0]
B = [5, 5, 5, 5]
b = [0, 10, 0, 0]
print(check(A, B, a, b))
(result True)
I want result become False if only one in list A or B have small value than a or b. In this code B[1] < b[1] (5 >= 10) result I expect is False but is output True