I have a list how do a assigned it to condition1[]
what is the optimal way to scale up if I want to have more search criteria. As my steps below does not produce consistent result.
list_a = ["jywREDhgg", "REdghfg", "fdsfhgReD", "dsadBLuE"]
condition1Keyword = ["Red", "REd", "ReD"]
condition1 = [con1 for con1 in image if any(Con1 in con1 for Con1 in condition1Keyword)]
condition2Keyword = ["BLuE"]
condition2 = [con2 for con2 in image if any(Con2 in con2 for Con2 in condition2Keyword)]