human
Find Excel column number from column title | Returns resul when we pass title ..
This process is similar to binary - to - decimal conversion.
Driver function"
How can the above be solved in Python?
 Write me a code to find Excel column number from column title and the other steps required?
assistant
#Here is code to find Excel column number from column title and the other steps required.
 def titleToNumber ( s ) :
	result = 0 ;
	for B in range ( len ( s ) ) :
		result *= 26 ;
		result += ord ( s [ B ] ) - ord ( ' A ' ) + 1 ;
	return result ;
print ( titleToNumber ( " CDA " ) ) ;