split twice in the same expression?
<p>Imagine I have the following:</p>

<pre><code>inFile = "/adda/adas/sdas/hello.txt"

# that instruction give me hello.txt
Name = inFile.name.split("/") [-1]

# that one give me the name I want - just hello
Name1 = Name.split(".") [0]
</code></pre>

<p>Is there any chance to simplify that doing the same job in just one expression?</p>
