Keep first word of Python string?
<p>Let's say I have a list of full names, like:</p>

<pre><code>names : ["Katie von Martin", "Bob Austin Marley", "John Travolta", "Josh Hartnett"]
</code></pre>

<p>What would a function to split each string and retain only the first word look like?</p>

<pre><code>def keepFirstName():
    for name in names:
        ????
</code></pre>
