Python3 how to try multiple functions to find and assign value?
<p>Currently my code looks like that:</p>

<pre><code>img = find_image_in_feed(feed)
if img:
    e.image = img
if not e.image:
    img = find_image_on_site(site)
    if img:
        e.image = img
</code></pre>

<p>It works but it looks confusing and hard to expand. In future there may be multiple more find_image(...) functions. Is there some "design pattern" that I should use in situation like that.
My second idea  also don't looks clean for me because of assigning and checking value at the same time.</p>

<pre><code>if img = find_image_in_feed(feed):
    e.image = img
elif img = find_image_on_site(site):
    e.image = img
</code></pre>

<p>I want my code to be as easy to read as possible, and I have a feeling I'm missing something obvious.</p>