title: How do I list specific words it finds in the order it finds them in
body: <p>I'm creating a discord bot and was wondering how I could list out the words in order it finds them in?</p>
  <pre class="lang-py prettyprint-override"><code>item_dict = {
      &quot;okay&quot;: (&quot;Mythical&quot;, &quot;50000&quot;),
      &quot;hello&quot;: (&quot;Mythical&quot;, &quot;17500&quot;),
      &quot;hi&quot;: (&quot;Legendary&quot;, &quot;14500&quot;),
      &quot;good&quot;: (&quot;Legendary&quot;, &quot;11600&quot;),
      &quot;very bad&quot;: (&quot;Common&quot;, &quot;1&quot;),
      }
  
  msg = input(&quot;Enter &quot;)
  new_list = []
  
  for x in item_dict:
      if x in msg:
          new_list.append(x)
          
  print(new_list)
  </code></pre>
  <p>If for example I enter <code>4 hi 3 very bad good</code>, I would want it to check the string and check if it matches any of the items in the dictionary and make it print <code>[hi, very bad, good]</code> instead of how its ordered in the dictionary which would print out <code>[hi, good, very bad]</code>.</p>