title: A question about recursive programming in python
body: <p>I am trying to implement a recursive function in python, let's call such function <code>F</code>, the input of such function is a list, lets call it <code>a</code>. The logic of the realization of <code>F</code> should be as following,</p>
  <pre><code>def F(a):
      if this is first time I run this function (in other words if this is not the first time I run this function, leave a as it is):
          a.reverse()
      then do something recursively calling F
  </code></pre>
  <p>I want to ask that what is the simplest way of achieving such goal. Does python actually support such logic?</p>