Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. n = int(input())
  2. d = {}
  3. for i in range(n): # input to d
  4. first = str(input()).split()
  5. d[first[0]] = first[1:-1]
  6.  
  7. k = int(input()) # condition
  8. city = ''
  9.  
  10. for i in range(k):
  11. city = str(input())
  12. i += 1
  13. for key in d:
  14. print('**')
  15. if city in d[key] == True:
  16. print('***')
  17. print(key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement