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