title: Is it considered pythonic to define a variable for a single use only?
body: <p>Have a great day people!</p>
  <p>Is it considered pythonic to define a variable for a single use only (it will not be used further down the code)? For example, which is better:</p>
  <pre><code>data = serializer.get(&quot;some_data&quot;)
  if data:
      pass
  </code></pre>
  <p>or</p>
  <pre><code>if serializer.get(&quot;some_data&quot;):
      pass
  </code></pre>