Write a python function to do bitwise multiplication on a given bin number by given shifts


Topic: Write a python function to do bitwise multiplication on a given bin number by given shifts

Solution

def bit_mul(n, shift):
    return n << shift



List all Python Programs