Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- d = {}
- for i in range(n): # input to d
- first = str(input()).split()
- d[first[0]] = first[1:-1]
- k = int(input()) # condition
- city = ''
- for i in range(k):
- city = str(input())
- i += 1
- for key in d:
- print('**')
- if city in d[key] == True:
- print('***')
- print(key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement