Run
a = '10111010' print(a, 'is of type:', type(a)) a = int(a, base=2) print(a, 'is of type:', type(a))
Output