For this Question: In sheet each row is assigne as a string as shown:-
 A - > 1
 B - > 2
 C - > 3
. .
 Z - > 26
 AA - > 27
 AB - > 28 

Given the string S, your task is to find its row number.Input contains a single line containing the string S.

Constraints:-
1 < = |S| < = 100000

Note:- String will only contain uppercase english lettersPrint a single integer containing the row number since the ans can be quite large print you ans modulo 10^9 + 7.Sample Input:-
AB

Sample Output:-
28

Sample Input:-
A

Sample Output:-
1, I have written this Solution Code: def titleToNumber(s):

	result = 0;
	for B in range(len(s)):
		result *= 26;
		result += ord(s[B]) - ord('A') + 1;

	return result%1000000007;

s=input()
print(titleToNumber(s));




"""

using namespace std;

long  titleToNumber(string s)
{
	long  ans=0;
    for(int    i=0;i<s.length();i++){
        
        
    	ans *= 26;
		ans += int(s[i]) - int('A') + 1;
    }
    return ans  ;
}

int main()
{
    string s;
    getline(cin,s);
	cout << titleToNumber(s)% 1000000007 ;
	return 0;
}""", In this Programming Language: Python, Now tell me if this Code is compilable or not?