Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. d = int(input())
  2. Dictionary = []
  3. for i in range(d):
  4.     Dictionary.append(input().lower())
  5.  
  6. l = int(input())
  7. Text = []
  8. Res = []
  9. for i in range(l):
  10.     Text.append(input().lower().split())
  11.    
  12. for i in range(l):
  13.     for j in range(len(Text[i])):
  14.         if Text[i][j] not in Dictionary and Text[i][j] not in Res:
  15.             Res.append(Text[i][j])
  16.             print(Text[i][j])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement