title: How to extract a word from a string and assign it to a variable in Python 3.7?
body: <p>Okay so I'm trying to creating this basic bot that answers some questions that I ask it using Python 3.7.</p>
  
  <p>I needed to create a system that when I ask it a meaning of a word, it replies with the meaning of that word. To do this, I used the module called PyDictionary.</p>
  
  <p>Now lets say I ask:</p>
  
  <p>"What is the meaning of dictionary"</p>
  
  <p>I want to extract the word "dictionary" and put it inside a variable then put that variable through some code that will figure out the meaning to that word.</p>
  
  <p>How can I extract the word "dictionary" so I can put it into a variable?</p>
  
  <p>I haven't tried any specific solutions to this, I can seem to figure out the logic to this since I'm a newbie to Python.</p>
  
  <pre><code>#This will be the module I'm importing
  from PyDictionary import PyDictionary
  dictionary=PyDictionary()
  
  #This line of code will be used to get the meaning:
  print (dictionary.meaning("test"))
  
  #The string "text" will be replaced with a variable containing the extracted word.
  </code></pre>
  
  <p>The expected result should be that:</p>
  
  <p>When someone types:</p>
  
  <p>"What is the meaning of text" </p>
  
  <p>"text" gets extracted and be put into a variable, then I can assign that variable to another line of code to get the meaning.</p>