title: How do I write a recursive function that return the minimum element in an array?
body: <p>write a recursive function that return the minimum element in an array where C is the array and s is the size. this is my code.</p>
  
  <pre><code>c = [2,5,6,4,3] 
  def min (c, s):              
        smallest = c[0]
        if c[s] &lt; smallest:
               smallest = c[s]
        else:
               return min 
  print min (c,s)
  </code></pre>
  
  <p>errors : s is not defined. </p>