parameters: (self, s)
return_statement: return result
docstring: :type s: str
          :rtype: int
docstring_summary: :type s: str
          :rtype: int
docstring_tokens: : type s : str : rtype : int
function: def titleToNumber(self, s):
          """
          :type s: str
          :rtype: int
          """
          result = 0
          for i in xrange(len(s)):
              result *= 26
              result += ord(s[i]) - ord('A') + 1
          return result
function_tokens: def titleToNumber ( self , s ) : result = 0 for i in xrange ( len ( s ) ) : result *= 26 result += ord ( s [ i ] ) - ord ( 'A' ) + 1 return result