title: One-liner to save value of if statement?
body: <p>Is there a smart way to write the following code in three or four lines?</p>
  
  <pre><code>a=l["artist"]
  if a:
      b=a["projects"]
      if b:
          c=b["project"]
          if c:
              print c
  </code></pre>
  
  <p>So I thought for something like pseudocode:</p>
  
  <pre><code>a = l["artist"] if True:
  </code></pre>