title: Static variable in Python?
body: <p>In C++ we have static keyword which in loops is something like this:</p>
  
  <pre><code>for(int x=0; x&lt;10; x++)
      {
        for(int y=0; y&lt;10; y++)
        {
          static int number_of_times = 0;
          number_of_times++;
        }
      }
  </code></pre>
  
  <p>static here makes <code>number_of_times</code> initialized once. How can I do same thing in python 3.x?</p>
  
  <p>EDIT: Since most of the people got confused I would like to point out that the code I gave is just example of static usage in C++. My real problem is that I want to initialize only ONE time variable in function since I dont want it to be global(blah!) or default parameter..</p>