title: how to program in python for auto incrementing a number on each function call
body: <p>I defined a function in that there is a variable <code>num</code> assigned 1000 and <code>increment</code> variable for incrementing the num by one. When it is called for the first time it increments by one and shows the value 1001 but when it is called again it shows the same value 1001 but it should show 1002, 1003 on every call</p>
  
  <pre><code>def number():
      num = 1000
      increment = num +1
      return increment
  
  
  print(number())
  </code></pre>