Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d = {}
- s = ""
- while s != "все":
- s = input()
- if s != "все":
- s = str.split(s, " ")
- d[s[0]] = s[1]
- word = input()
- if (d.keys().__contains__(word)):
- print(d[word])
- else:
- print("Такого слова нет")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement