human
Count characters at same position as in English alphabet | Function to count the number of characters at same position as in English alphabets.
Traverse the input string.
Check that index of characters of string is same as of English alphabets by using ASCII values and the fact that all lower case alphabetic characters come together in same order in ASCII table . And same is true for upper case ..
Driver Code"
Solution in Python:
 Write me a code to count characters at same position as in English alphabet and the other steps required?
assistant
#Here is code to count characters at same position as in English alphabet and the other steps required.
 def findCount ( str ) :
	result = 0
	for i in range ( len ( str ) ) :
		if ( ( i == ord ( str [ i ] ) - ord ( ' a ' ) ) or ( i == ord ( str [ i ] ) - ord ( ' A ' ) ) ) :
			result += 1
	return result
str = ' AbgdeF '
print ( findCount ( str ) )