title: how to fix 'int' object is not iterable error in python?
body: <p>I have to write a code in python that gets a string as an input from the user and add a dot before each character of the string as an output.
  this is the code I wrote, but I faced this error:</p>
  <p>for letter in len(vroodi):</p>
  <blockquote>
  <p>TypeError: 'int' object is not iterable</p>
  </blockquote>
  <p>Can anyone help me fix the error?</p>
  <pre><code>vroodi = str(input(&quot;Enter the string&quot;))
  def insert_dot(q, harf):
      e= vroodi[ :harf] + &quot;.&quot; +vroodi[harf: ]
      return e
  for letter in len(vroodi):
      r = insert_dot(vroodi, letter)
  print(r)
  </code></pre>