Python: Read only file name, instead of path : <p>How to get ONLY filename instead of full path?</p>

<p>For example:</p>

<pre><code>path = /folder/file.txt
</code></pre>

<p>and i need to get:</p>

<pre><code>filename = file.txt
</code></pre>

<p>How to do that?</p>
