image

the sleepy snake

index :: num :: bin_to_int

bin_to_int(bin)

Converts a string representing a binary number to an integer and returns it

print bin_to_int("101")
>> 5