Python can represent floats in binary but cannot use bit operations (&, |, ^, ~, >>, and <<) on them. Why? Let’s take bitwise conjunction operation: >>100.0 & 101.0 # raises a TypeError >>100 & 101 # works fine outputting…