SHARE
TWEET

Untitled

repente Nov 12th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user01 = int(input())
  2. i = 0
  3. dict_word = {}
  4. while True:
  5.     if user01 <= i:
  6.         break
  7.     user02 = input().split(" ")
  8.     dict_word[user02[0]] = user02[1]
  9.     i+=1
  10.  
  11. user03 = input()
  12. flag = True
  13. for key, val in dict_word.items():
  14.     if val == user03:
  15.         flag = False
  16.         print(key)
  17.  
  18. if flag:
  19.     print("No synonim")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top