title: python find last in string
body: <p>I'm looking for a simple method of identifying the last position of a string inside another string ... for instance. If I had: <code>file = C:\Users\User\Desktop\go.py</code><br/>
  and I wanted to crop this so that <code>file = go.py</code><br/></p>
  
  <p>Normally I would have to run <code>C:\Users\User\Desktop\go.py</code> through a loop + find statement, and Evey time it encountered a <code>\</code> it would ask ... is the the last <code>\</code> in the string? ... Once I found the last <code>\</code> I would then <code>file = file[last\:len(file)]</code><br/>
  I'm curious to know if there is a faster neater way to do this.. preferably without a loop.<br/>
  Something like file = <code>[file('\',</code><strong>last</strong><code>):len(file)]</code><br/>
  If there is nothing like what I've shown above ... then can we place the loop inside the <code>[:]</code> somehow. Something like <code>file = [for i in ...:len(file)]</code><br/>
  <br/>
  thanks :)</p>