title: Python style: more concise way to rename a variable while checking it is not null
body: <p>In Python, I often find myself writing the following slightly unwieldy bit of code:</p>
  
  <pre><code>if data['name'] is not None:
      name = data['name']
      # do stuff with 'name' over many lines
      # hence bothering to rename it at all!
      $('#myname').text(name)...
  </code></pre>
  
  <p>Can the first two lines be collapsed into one, perhaps all inside the condition statement?</p>