<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bitlist_to_int(bitlist: Sequence[int]) -> int: """Converts a sequence of bits to an integer. 4 """

    return int(''.join([str(d) for d in bitlist]), 2)