Manipulating strings in python - concentrating on part of a user's input
<pre><code>    resp = raw_input("What is your favorite fruit?\n")
if "I like" in resp:
    print "%s" - "I like" + " is a delicious fruit." % resp
else:
    print  "Bubbles and beans."
</code></pre>

<p>OK I  know this code doesn't work, and I know why.  You can't subtract strings from each other like numbers.</p>

<p>But is there a way to break apart a string and only use part of the response?
And by "is there a way" I really mean "how," because anything is possible in programming. :D</p>

<p>I'm trying to write my first chatterbot from scratch.</p>
