human
Find all Pairs possible from the given Array | Function to prall possible pairs from the array.
Nested loop for all possible pairs.
Driver code"
How can the above be solved in Python?

Give me a code to find all Pairs possible from the given Array and the other steps required?
assistant
#Here is code to find all Pairs possible from the given Array and the other steps required.
 def printPairs ( arr , n ) :
	for i in range ( n ) :
		for j in range ( n ) :
			print ( " ( " , arr [ i ] , " , " , arr [ j ] , " ) " , end = " , ▁ " )
arr = [ 1 , 2 ]
n = len ( arr )
printPairs ( arr , n )