How to read word(or character) on txt file from the last word to the first word in python?
<p>Example: I have a file as :<br>
filename1 = "I am a student" (inside filename1 have I am a student )</p>

<pre><code>f = open(filename1)
string = f.read()
spl = re.split('\s|(?&lt;!\d)[,.](?!\d)',string)
f.close
</code></pre>

<p>print spl will show:
I am a student , but I need the result as [student a am I]
could you answer me please...
Thanks in advance.</p>
