title: Python nested if-else statements
body: <p>I have a statement like this</p>
  
  <pre><code>for word in tweet_text:
      if word in new_words:
          if new_words[word] == 0:
               new_words[word] = sent_count
          else:
               new_words[word] = (new_words[word] + sent_count) / 2
  </code></pre>
  
  <p>And I am very suspicious that the else block is executed every time when the first condition is not met (<code>if word in new_words</code>), is this possible?Am I am doing something wrong with indentication?</p>