Write a program to print bit wise AND of two numbers


Topic: Write a program to print bit wise AND of two numbers

Solution

a = 60            # 60 = 0011 1100
b = 13            # 13 = 0000 1101
c = a & b        # 12 = 0000 1100
print("AND", c)



List all Python Programs