Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import copy
- dictionary_number=int(input())
- dictionary=[input().lower() for x in range(dictionary_number)]
- text_number=int(input())
- text=[]
- for x in range(text_number):
- text+=input().split()
- input_data=copy.deepcopy(text)
- result_output=[]
- for x in range (len(text)):
- text[x]=text[x].lower()
- if text[x] in dictionary:
- continue
- else:
- if input_data[x] in result_output: continue
- else: result_output.append(input_data[x])
- for word in result_output:
- print (word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement