def from_sequence(cls, seq):
		"""Iterates over the sequence to produce a new Bitset.

		As in integers, the 0 position represents the LSB.
		"""
		n = 0
		for index, value in enumerate(reversed(seq)):
			n += 2**index * bool(int(value))
		b = Bitset(n)
		return b
Iterates over the sequence to produce a new Bitset.

		As in integers, the 0 position represents the LSB.
		
recipes/Python/576738_Bitset/recipe-576738.py