title: How to use boolean 'and' in Python
body: <p>In C# we can use <code>&amp;&amp;</code> (boolean and) like this:</p>
  
  <pre><code>int i = 5;
  int ii = 10;
  if(i == 5 &amp;&amp; ii == 10) {
      Console.WriteLine("i is 5, and ii is 10");
  }
  Console.ReadKey(true);
  </code></pre>
  
  <p>But try that with python:</p>
  
  <pre><code>i = 5
  ii = 10
  if i == 5 &amp;&amp; ii == 10:
      print "i is 5 and ii is 10";      
  </code></pre>
  
  <p>I get an error: <code>SyntaxError: invalid syntax</code></p>
  
  <p>If I use a single <code>&amp;</code>, at least I get no syntax error.  How do I do a boolean <code>&amp;&amp;</code> in Python?</p>