human
Find the character made by adding all the characters of the given string | Function to return the required character.
To store the summ of the characters of the given string.
Add the current character to the summ.
Return the required character.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to find the character made by adding all the characters of the given string and the other steps required.
 def getChar ( strr ) :
	summ = 0
	for i in range ( len ( strr ) ) :
		summ += ( ord ( strr [ i ] ) - ord ( ' a ' ) + 1 )
	if ( summ % 26 == 0 ) :
		return ord ( ' z ' )
	else :
		summ = summ % 26
		return chr ( ord ( ' a ' ) + summ - 1 )
strr = " gfg "
print ( getChar ( strr ) )