How to print names from a text file in Python
<p>I have got a text document that looks something like this</p>

<pre><code>Kei 1 2 3 4 5
Igor 5 6 7 8 9
Guillem 8 7 6 9 5
</code></pre>

<p>How can I print their names and their last 3 scores</p>

<p>I came up with this</p>

<pre><code>class_3 = open('class_3','r')
read = class_3.read()
read.split()
print(read)
</code></pre>

<p>But it came out with just</p>

<pre><code>K
</code></pre>

<p>Please help</p>