title: Block scope in Python
body: <p>When you code in other languages, you will sometimes create a block scope, like this:</p>
  
  <pre><code>statement
  ...
  statement
  {
      statement
      ...
      statement
  }
  statement
  ...
  statement
  </code></pre>
  
  <p>One purpose (of many) is to improve code readability: to show that certain statements form a logical unit or that certain local variables are used only in that block.</p>
  
  <p>Is there an idiomatic way of doing the same thing in Python?</p>