code: def getPhoneInfo(numb):
      '''
      Walk the phone info tree to find the best-match info for the given number.
  
      Example:
  
          info = getPhoneInfo(17035551212)
          country = info.get('cc')
  
      '''
      text = str(numb)
  
      info = {}
      node = phonetree
  
      # make decisions down the tree (but only keep info for
      # nodes where it's populated) and return the last info
      for c in text:
          chld = node[2].get(c)
          if chld is None:
              break
  
          if chld[1]:
              info = chld[1]
  
          node = chld
  
      return inff getPhoneInfo(numb):
      '''
      Walk the phone info tree to find the best-match info for the given number.
  
      Example:
  
          info = getPhoneInfo(17035551212)
          country = info.get('cc')
  
      '''
      text = str(numb)
  
      info = {}
      node = phonetree
  
      # make decisions down the tree (but only keep info for
      # nodes where it's populated) and return the last info
      for c in text:
          chld = node[2].get(c)
          if chld is None:
              break
  
          if chld[1]:
              info = chld[1]
  
          node = chld
  
      return info
docs: Walk the phone info tree to find the best-match info for the given number.
  
      Example:
  
          info = getPhoneInfo(17035551212)
          country = info.get('cc')