human
Lower case to upper case | Converts a string to uppercase.
Driver code"
How can the above be solved in Python?
 ... Can you provide a code to lower case to upper case and the other steps required?
assistant
#Here is code to lower case to upper case and the other steps required.
 def to_upper ( s ) :
	for i in range ( len ( s ) ) :
		if ( ' a ' <= s [ i ] <= ' z ' ) :
			s = s [ 0 : i ] + chr ( ord ( s [ i ] ) & ( ~ ( 1 << 5 ) ) ) + s [ i + 1 : ] ;
	return s ;
if __name__ == ' _ _ main _ _ ' :
	string = " geeksforgeeks " ;
	print ( to_upper ( string ) ) ;