title: Python - Check if String is in Dictionary Value when Value is a list
body: <p>I am trying to resolve the following: I created a list of the books in the Bible. I also created a Dictionary which has a Key and a Value which is a reference to the list created. </p>
  
  <p>I would like to see if a string value is present in the dictionary, if present, return the key of the value. </p>
  
  <p>Here is my code:</p>
  
  <pre><code># Dict List for bible
  BIBLE_BOOKS_LIST_DICT = [
  ("Genesis"), ("Exodus"), ("Leviticus"),
  ("Numbers"), ("Deuteronomy"), ("Joshua"),
  ("Judges"), ("1 Samuel"), ("2 Samuel"),
  ("1 Kings"), ("2 Kings"), ("1 Chronicles"),
  ("2 Chronicles"), ("Ezra"), ("Nehemiah"),
  ("Esther"), ("Job"), ("Psalms"), ("Proverbs"),
  ("Ecclesiastes"), ("Song of Solomon"),
  ("Isaiah"), ("Jeremiah"), ("Lamentations"),
  ("Ezekiel"), ("Daniel"), ("Hosea"), ("Joel"),
  ("Amos"), ("Obadiah"), ("Jonah"), ("Micah"),
  ("Nahum"), ("Habakkuk"), ("Zephaniah"),
  ("Haggai"), ("Zechariah"), ("Malachi"),
  ("Matthew"), ("Mark"), ("Luke"), ("John"),
  ("Acts"), ("Romans"), ("1 Corinthians"),
  ("2 Corinthians"), ("Galatians"), ("Ephesians"),
  ("Philippians"), ("Colossians"), ("1 Thessalonians"),
  ("2 Thessalonians"), ("1 Timothy"), ("2 Timothy"),
  ("Titus"), ("Philemon"), ("Hebrews"), ("James"),
  ("1 Peter"), ("2 Peter"), ("1 John"), ("2 John"),
  ("3 John"), ("Jude"), ("Revelation")
  ]
  
  # Dict for bible categories
  BIBLE_BOOKS_DICT = {
  'The Law':BIBLE_BOOKS_LIST_DICT[:5],
  'OT History':BIBLE_BOOKS_LIST_DICT[5:16],
  'Poetry':BIBLE_BOOKS_LIST_DICT[16:21],
  'Major Prophets':BIBLE_BOOKS_LIST_DICT[21:26],
  'Minor Prophets':BIBLE_BOOKS_LIST_DICT[26:38],
  'Gospels':BIBLE_BOOKS_LIST_DICT[38:42],
  'NT History':BIBLE_BOOKS_LIST_DICT[42:43],
  'Pauline Epistles':BIBLE_BOOKS_LIST_DICT[43:52],
  'Pastoral Letters':BIBLE_BOOKS_LIST_DICT[52:55],
  'General Epistles':BIBLE_BOOKS_LIST_DICT[55:64],
  'Prophecy':BIBLE_BOOKS_LIST_DICT[64:65]
  }
  </code></pre>
  
  <p>I've been working on this for hours but have not found any solution!
  My logic is, </p>
  
  <pre><code>if "Matthew" in BIBLE_BOOKS_DICT.values():
      print *the key related to that value*
  </code></pre>
  
  <p>Thank you!</p>