human
Find frequency of each character with positions in given Array of Strings | Function to print every occurence of every characters in every string.
Iterate over the vector arr [ ].
Traverse the string arr [ i ].
Push the pair of { i + 1 , j + 1 } in mp [ arr [ i ] [ j ] ].
Print the occurences of every character.
Driver Code.
Input.
Function call"
How can the above be solved in Python?

What is a code to find frequency of each character with positions in given Array of Strings and the other steps required?
assistant
#Here is code to find frequency of each character with positions in given Array of Strings and the other steps required.
 def printOccurences ( arr , N ) :
	mp = [ [ ] for i in range ( 26 ) ]
	for i in range ( N ) :
		for j in range ( len ( arr [ i ] ) ) :
			mp [ ord ( arr [ i ] [ j ] ) - ord ( ' a ' ) ] . append ( ( i + 1 , j + 1 ) )
	for i in range ( 26 ) :
		if len ( mp [ i ] ) == 0 :
			continue
		print ( " Occurences ▁ of : " , chr ( i + ord ( ' a ' ) ) , " = " , end = " ▁ " )
		for j in mp [ i ] :
			print ( " [ " + str ( j [ 0 ] ) + " ▁ " + str ( j [ 1 ] ) + " ] ▁ " , end = " " )
		print ( )
if __name__ == ' _ _ main _ _ ' :
	arr = [ " geeksforgeeks " , " gfg " ]
	N = len ( arr )
	printOccurences ( arr , N )