title: Inserting a period after each character in a loop
body: <p>Say I have a string <code>tex = &quot;somestring&quot;</code></p>
  <p>I need to create a loop that will create multiple copies of that string, each one with a period added after a character, starting after the first character and ending it before the last</p>
  <p>Something like</p>
  <pre><code>for i in range (1, len(tex)-2):
      tex = ....
      print(tex)
  </code></pre>
  <p>The output needs to be:</p>
  <pre class="lang-none prettyprint-override"><code>s.omestring
  so.mestring
  som.estring
  ...
  somestrin.g
  </code></pre>
  <p>I tried using <code>tex = '.'.join(tex[i+1] for i in range (1, len(tex)-2, 1))</code> from other questions but that adds a period after every character only once, resulting in s.o.m.e.s.r.i.n.g</p>
  <p>Maybe splitting the string into a list of characters would help, but I'm not sure how to approach it from that way.</p>