May-29-2021, 11:45 PM
you are printing matched even when not.
Proper syntax:
Proper syntax:
for lnyrd in yrd : lnyrd=lnyrd.strip() found = re.search(sp_EL1,lnyrd) if found: print(f" Fund matched- -{lntod}") else: print(f" Not Matched ++ {lntod}")