extened array if value match python

Solutions on MaxInterview for extened array if value match python by the best coders in the world

showing results for - "extened array if value match python"
Lucia
19 Apr 2020
1for logs in mydir:
2
3    for line in mylog:
4        #...if the conditions are met
5        list1.append(line)
6
7    if any(True for line in list1 if "string" in line):
8        list2.extend(list1)
9    del list1
10
11    ....