Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d = int(input())
- Dictionary = []
- for i in range(d):
- Dictionary.append(input().lower())
- l = int(input())
- Text = []
- Res = []
- for i in range(l):
- Text.append(input().lower().split())
- for i in range(l):
- for j in range(len(Text[i])):
- if Text[i][j] not in Dictionary and Text[i][j] not in Res:
- Res.append(Text[i][j])
- print(Text[i][j])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement