title: Does Python support ++?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1485841/behaviour-of-increment-and-decrement-operators-in-python">Behaviour of increment and decrement operators in Python</a>  </p>
  </blockquote>
  
  
  
  <p>I'm new to Python, I'm confused about ++ python. I've tried to ++num but num's value is not changed:</p>
  
  <pre><code>&gt;&gt;&gt; a = 1
  &gt;&gt;&gt; ++a
  1
  &gt;&gt;&gt; print a
  1
  &gt;&gt;&gt; print(++a)
  1
  </code></pre>
  
  <p>Could somebody explain this? If Python support ++, why num has not changed. If it doesn't why can I use ++?</p>