human
Give me a code to check if lowercase and uppercase characters are in same order and the other steps required given the following:
Check if lowercase and uppercase characters are in same order | Function to check if both the case follow the same order.
Traverse the string.
Store both lowercase and uppercase in two different strings.
transfor lowerStr to uppercase.
Driver Code"
Solution in Python:
assistant
#Here is code to check if lowercase and uppercase characters are in same order and the other steps required.
 def isCheck ( str ) :
	length = len ( str )
	lowerStr , upperStr = " " , " "
	for i in range ( length ) :
		if ( ord ( str [ i ] ) >= 65 and ord ( str [ i ] ) <= 91 ) :
			upperStr = upperStr + str [ i ]
		else :
			lowerStr = lowerStr + str [ i ]
	transformStr = lowerStr . upper ( )
	return transformStr == upperStr
if __name__ == " _ _ main _ _ " :
	str = " geeGkEEsKS "
	if isCheck ( str ) :
		print ( " Yes " )
	else :
		print ( " No " )