Mar-21-2018, 01:20 AM
(This post was last modified: Mar-21-2018, 01:21 AM by tannishpage.)
Why is there a print statement inside a list?
arr2 = [x for x in arr if (re.search('MINS', str(x), flags=0)) or (re.search('NM', str(x), flags=0)) or re.search('min', str(x), flags=0) else x = "No values found" ] for item in arr2: print(item)Try that. I think thats what you are asking for.