human
Can you provide a code to mirror characters of a string and the other steps required given the following:
Mirror characters of a string | Function which take the given string and the position from which the reversing shall be done and returns the modified string.
Creating a string having reversed alphabetical order.
The string up to the point specified in the question , the string remains unchanged and from the point up to the length of the string , we reverse the alphabetical order.
Driver function"
Solution in Python:
assistant
#Here is code to mirror characters of a string and the other steps required.
 def compute ( st , n ) :
	reverseAlphabet = " zyxwvutsrqponmlkjihgfedcba "
	l = len ( st )
	answer = " "
	for i in range ( 0 , n ) :
		answer = answer + st [ i ] ;
	for i in range ( n , l ) :
		answer = ( answer + reverseAlphabet [ ord ( st [ i ] ) - ord ( ' a ' ) ] ) ;
	return answer ;
st = " pneumonia "
n = 4
answer = compute ( st , n - 1 )
print ( answer )