title: How to set python variables to true or false?
body: <p>I want to set a variable in Python to true or false.  But the words <code>true</code> and <code>false</code> are interpreted as undefined variables:</p>
  
  <pre><code>#!/usr/bin/python
  a = true; 
  b = true;
  if a == b:          
    print("same");
  </code></pre>
  
  <p>The error I get:</p>
  
  <pre><code>a = true
  NameError: global name 'true' is not defined 
  </code></pre>
  
  <p>What is the python syntax to set a variable true or false?</p>
  
  <p>Python 2.7.3</p>