human
Polybius Square Cipher | function to display polybius cipher text.
convert each character to its encrypted code.
finding row of the table.
finding column of the table.
if character is 'k.
if character is greater than 'j.
Driver 's Code.
print the cipher of " geeksforgeeks ""
How can the above be solved in Python?

Give me a code to polybius Square Cipher and the other steps required?
assistant
#Here is code to polybius Square Cipher and the other steps required.
 def polybiusCipher ( s ) :
	for char in s :
		row = int ( ( ord ( char ) - ord ( ' a ' ) ) / 5 ) + 1
		col = ( ( ord ( char ) - ord ( ' a ' ) ) % 5 ) + 1
'
	if char == ' k ' :
		row = row - 1
		col = 5 - col + 1
'
	elif ord ( char ) >= ord ( ' j ' ) :
		if col == 1 :
			col = 6
			row = row - 1
		col = col - 1
	print ( row , col , end = ' ' , sep = ' ' )
if __name__ == " _ _ main _ _ " :
	s = " geeksforgeeks "
	polybiusCipher ( s )