Please help me clean up my function
<p>Here is my function's objective: </p>

<blockquote>
  <p>Define a procedure, <code>find_last</code>, that takes as input two strings, a
  search string and a target string,and returns the last position in the
  search string where the target string appears, or <code>-1</code> if there are no
  occurrences.</p>
</blockquote>

<p><a href="https://www.udacity.com/course/viewer#!/c-cs101/l-48713769/e-48634826/m-48739128" rel="nofollow">Here is a link to the question.</a></p>

<p>And here's my function so far:</p>

<pre><code>def find_last(target, search):
    find = target.find(search, 0)

    if find != -1:
        targets = target.find(search, find)

        while targets != -1:
            find = find + 1
            targets = target.find(search, find)
        return find - 1
    else:
        return -1
</code></pre>

<p>The code returns the answer I'm looking for with <code>return find - 1</code>, but I know there is a better way to go about doing this.</p>

<p>Any help would be greatly appreciated!</p>
