avatar
Untitled

Guest 52 22nd Nov, 2019

MARKUP 0.18 KB
                                           
                         x="BA"

if len(x)==1:
    print(ord(x)-64)

else:
    result=1
    for i in x[:-1]:
        result*=(ord(i)-64)*26
    result+=(ord(x[-1])-64)
    print(result)
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes