title: For what value of n would g(47,n) return 5?
body: <p>i am new at Python. while i was doing exercises ,i just come across that question. First, how can i solve that. Second, what is role of res=0 and res=res+1?</p>
  <p>For what value of n would g(47,n) return 5?</p>
  <pre><code>def g(m, n):
      res=0
      while m&gt;=n:
          res=res+1
          m=m-n
      return res
  </code></pre>