Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Excel Column Number by freixodachamorra
def column_number(name: str) -> int:
num = 0
for l in name:
num = num * 26 + ord(l) - 64
return num
print("Example:")
print(column_number("AA"))
assert column_number("A") == 1
assert column_number("Z") == 26
assert column_number("AB") == 28
assert column_number("ZY") == 701
print("The first mission is done! Click 'Check' to earn cool rewards!")
Nov. 20, 2021
Comments: