How to merge the condition in array format
lines = [line for line in open('text.txt')if
'|E|' in line and
'GetPastPaymentInfo' in line and
'CheckData' not in line and
'UpdatePrintStatus' not in line
]
like
lines = [line for line in open('text.txt')if
['|E|','GetPastPaymentInfo'] in line and
['CheckData','UpdatePrintStatus'] not in line]
intheline. You could useall.