title: Python format phone number
body: <p>How would I go about formatting a 10 digit string: <code>0123456789</code> to phone number format: </p>
  
  <blockquote>
    <p>(012) 345-6789</p>
  </blockquote>
  
  <p>Is there a specific library to use or can you use regex? </p>
  
  <p>I've done it the other way around by using <code>re.sub('[^0-9]', '', '(012) 345-6789')</code></p>