human
Write me a code to lexicographical Maximum substring of string and the other steps required given the following:
Lexicographical Maximum substring of string | Python 3 program to find the lexicographically maximum substring ..
loop to find the max leicographic substring in the substring array.
Driver code"
Solution in Python:
assistant
#Here is code to lexicographical Maximum substring of string and the other steps required.
 def LexicographicalMaxString ( str ) :
	mx = " "
	for i in range ( len ( str ) ) :
		mx = max ( mx , str [ i : ] )
	return mx
if __name__ == ' _ _ main _ _ ' :
	str = " ababaa "
	print ( LexicographicalMaxString ( str ) )