python binary for integer code example Example: python binary representation of numbers # get integer version of binary number int(bin(8)[2:])