title: brackets around print in python
body: <p>I have this line of code in python</p>
  
  <pre><code>print 'hello world'
  </code></pre>
  
  <p>against </p>
  
  <pre><code>print ('hello world')
  </code></pre>
  
  <p>can someone tell me the difference between the two?</p>
  
  <p>I used it in a a simple code </p>
  
  <pre><code>var = 3
  if var &gt; 2: 
      print 'hello'
  </code></pre>
  
  <p>it fails for checking strictly for all values for var. But if I define the code as </p>
  
  <pre><code>var = 3
  if var &gt; 2: 
      print ('hello')
  </code></pre>
  
  <p>it works!</p>