Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = open("t.txt","r")
- list1 = []
- while True:
- text = data.readline()
- count = {
- "a": [],
- "b": [],
- "c": [],
- "d": []
- }
- for item in count:
- if item in text or "Subject" in text:
- list1.append(text)
- data.close()
- print(list1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement