title: Why am I getting two diferent outputs with my python code?
body: <pre><code>def kaka(name):
      r=''
      for ch in name:
  
          r=r+ch*3
      return r 
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&gt;&gt;&gt; kaka('Mississippi')
  &gt;&gt;&gt; 'MMMiiissssssiiissssssiiippppppiii'
  </code></pre>
  
  <p>But for this code:</p>
  
  <pre><code>def kaka(name):   
      for ch in name:
  
          r=''
          r=r+ch*3
      return r
  </code></pre>
  
  <p>I am getting output as: <code>iii</code></p>