Advertisement
Guest User

TrumpQTripConfirm.py

a guest
Dec 5th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #trip_charQ = ['!','H','s','1','J','q','1','3','j','V','6']
  2. trip_chars = ['H','s','1','1','3','j','V','6']
  3. # J removed, J in every Donald J Trump
  4. # ! and ! counted seperately because it occurs twice in Q's tripcode
  5.  
  6. file0 = open('TrumpAllTimestamp.txt','r')
  7. matches = 0
  8. for line in file0:
  9. matched_chars = 1 #Always 1 because J matches from Donald J Trump
  10. for char in trip_chars:
  11. if char in line:
  12. matched_chars += 1
  13. if line.count ('!') == 2:
  14. matched_chars += 2
  15. if matched_chars == len(trip_chars)+3:
  16. matches += 1
  17. print(line)
  18.  
  19. print(matches)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement