Week 7 Assignment 3 Deadline Tomorrow

mail@pastecode.io avatar
unknown
python
a month ago
119 B
2
Indexable
Never
label = input()
output = 0
for char in label:
    output = output * 26 + (ord(char) - ord('A') + 1)

print(output)
Leave a Comment