title: Using IFF in Python
body: <p>Is there a way to write an <a href="https://en.wiktionary.org/wiki/iff#Conjunction" rel="noreferrer">iff</a> statement (i.e., if and only if) in Python?</p>
  <p>I want to use it like in</p>
  <pre><code>for i in range(x)
      iff x%2==0 and x%i==0:
  </code></pre>
  <p>However, there isn't any <code>iff</code> statement in Python. Wikipedia defines the <a href="https://en.wikipedia.org/wiki/If_and_only_if#Definition" rel="noreferrer">truth table for iff</a> as this:</p>
  <pre class="lang-none prettyprint-override"><code>a |  b  |  iff a and b
  -----------------------
  T |  T  |      T
  T |  F  |      F
  F |  T  |      F
  F |  F  |      T
  </code></pre>
  <p>How do I accomplish this in Python?</p>