Select one answer per question. Submit to see the explanation.
bits = BitArray.from_samples(['101', '010', '000', '111']) bits.bitcount().tolist()