human
Average of ASCII values of characters of a given string | Function to find average of ASCII value of chars.
loop to sum the ascii value of chars.
Returning average of chars.
Driver code"
How can the above be solved in Python?
 Can you provide a code to average of ASCII values of characters of a given string and the other steps required?
assistant
#Here is code to average of ASCII values of characters of a given string and the other steps required.
 def averageValue ( s ) :
	sum_char = 0
	for i in range ( len ( s ) ) :
		sum_char += ord ( s [ i ] )
	return sum_char // len ( s )
if __name__ == " _ _ main _ _ " :
	s = " GeeksforGeeks "
	print ( averageValue ( s ) )