human
Find one extra character in a string | Python 3 program to find extra character in one string.
result store the result.
traverse string A till end and xor with res.
xor with res.
traverse string B till end and xor with res.
xor with res.
print result at the end.
given string"
How can the above be solved in Python?

=====
What is a code to find one extra character in a string and the other steps required?
assistant
#Here is code to find one extra character in a string and the other steps required.
 def findExtraCharcter ( strA , strB ) :
	res = 0
	for i in range ( 0 , len ( strA ) ) :
		res = res ^ ( ord ) ( strA [ i ] )
	for i in range ( 0 , len ( strB ) ) :
		res = res ^ ( ord ) ( strB [ i ] )
	return ( ( chr ) ( res ) ) ;
strA = " abcd "
strB = " cbdad "
print ( findExtraCharcter ( strA , strB ) )