How to use multiple if else conditions when using “and” logic in a nested for-loop using python
问题 I have a list of lists of lists The outer most list is the entire collection of members, each list within that is the individual members, and within that is each line of the raw text file I got split up into its individual elements. Each member's record has a Name line, indicated by the "NM1" label But not every member has an "End Date" field, indicated by the 'DTP' and '349' labels Likewise not every member has an "Prior ID" field, indicated by the 'REF' and '0F' labels I want to go through