title: How would you do the equivalent of preprocessor directives in Python?
body: <p>Is there a way to do the following preprocessor directives in Python?</p>
  
  <pre><code>#if DEBUG
  
  &lt; do some code &gt;
  
  #else
  
  &lt; do some other code &gt;
  
  #endif
  </code></pre>