code: def bitlist_to_int(bitlist):
      
  
      ret = 0
      for b in bitlist:
          ret = (ret << 1) | (int(b) & 1)
      return ret
docs: Convert a binary bitstring into the corresponding unsigned integer.
  
      :param list bitlist: A list of ones of zeros.
      :return: The corresponding integer.
      :rtype: int