human
Write me a code to find bitwise AND ( & ) of all possible sub and the other steps required given the following:
Find bitwise AND ( & ) of all possible sub | function to return AND of sub - arrays.
Driver Code.
size of the array.
print and of all subarrays"
How can the above be solved in Python?
assistant
#Here is code to find bitwise AND ( & ) of all possible sub and the other steps required.
 def AND ( a , n ) :
	ans = a [ 0 ]
	for i in range ( n ) :
		ans &= a [ i ]
	return ans
if __name__ == " _ _ main _ _ " :
	a = [ 1 , 2 , 3 ]
	n = len ( a )
	print ( AND ( a , n ) )