title: How to convert a 32 characters ip address to binary dotted decimal format?
body: <p>IP address <code>00000011100000001111111111111111</code> will be converted into dotted decimal format as: <code>3.128.255.255</code>. This is because the 1st 8 bits <code>00000011</code> will be converted to 3, the 2nd 8 bits <code>10000000</code> will be converted to 128, the 3rd 8 bits <code>11111111</code> will be converted to 255 and the last 8 bits <code>11111111</code> will be converted to 255.</p>
  
  <p>How to write a function <code>ip_format()</code> that accepts an IP address in binary format and converts it into its dotted decimal format ?</p>