code: def ip_to_array(ipaddress):
      
      res = []
      for i in ipaddress.split("."):
          res.append(int(i))
  
      assert len(res) == 4
      return res
docs: Convert a string representing an IPv4 address to 4 bytes.