human
What is a code to program to find the Encrypted word and the other steps required given the following:
Program to find the Encrypted word | Function to find the encrypted string.
to store the encrypted string.
after ' z ' , it should go to a ..
Driver code"
How can the above be solved in Python?
assistant
#Here is code to program to find the Encrypted word and the other steps required.
 def findWord ( c , n ) :
	co = 0
	s = [ 0 ] * n
	for i in range ( n ) :
		if ( i < n / 2 ) :
			co += 1
		else :
			co = n - i
		if ( ord ( c [ i ] ) + co <= 122 ) :
			s [ i ] = chr ( ord ( c [ i ] ) + co )
		else :
			s [ i ] = chr ( ord ( c [ i ] ) + co - 26 )
	print ( * s , sep = " " )
s = " abcd "
findWord ( s , len ( s ) )