title: How to remove some dots from a string in python
body: <p>I'm extracting an int from a table but amazingly comes as a string with multiple full stops.
  This is what I get:</p>
  
  <pre><code>p = '23.4565.90'
  </code></pre>
  
  <p>I would like to remove the last dots but retain the first one when converting to an in.
  If i do</p>
  
  <pre><code>print (p.replace('.',''))
  </code></pre>
  
  <p>all dot are removed
  How can I do this.</p>
  
  <p>N/B
  Tried a long way of doing this </p>
  
  <pre><code>p = '88.909.90000.0'
  pp = p.replace('.','')
  ppp = list(''.join(pp))
  ppp.insert(2, '.')
  print (''.join(ppp))
  </code></pre>
  
  <p>BUT 
  discovered that some figures come as 
  e.g. 170.53609.45
  and with this example, I'll end up with 17.05360945 instead of 170.5360945</p>