Binary number
-It is a number which expressed in the base-2 numeral system,
-Binary numbers are 0 or 1.
Division of two binary number -
Example-
b1=1010 // 10 in decimal
b2=101 // 5 in decimal
then divide of b1 to b2 is 10 // 2 in decimal
program -
print("Enter first binary number")
n=input()
print("Enter second binary number")
m=input()
s=bin(int(int(n,2)/int(m,2)))
print("division of first binary number by second binary second is - "+s)
Enter first binary number
1010
Enter second binary number
101
division of first binary by second binary is - 0b10
Enter first binary number
100000000
Enter second binary number
100
division of first binary by second binary is - 0b1000000