Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #trip_charQ = ['!','H','s','1','J','q','1','3','j','V','6']
- trip_chars = ['H','s','1','1','3','j','V','6']
- # J removed, J in every Donald J Trump
- # ! and ! counted seperately because it occurs twice in Q's tripcode
- file0 = open('TrumpAllTimestamp.txt','r')
- matches = 0
- for line in file0:
- matched_chars = 1 #Always 1 because J matches from Donald J Trump
- for char in trip_chars:
- if char in line:
- matched_chars += 1
- if line.count ('!') == 2:
- matched_chars += 2
- if matched_chars == len(trip_chars)+3:
- matches += 1
- print(line)
- print(matches)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement