Untitled

Anonymous
python
10/22/2021 8:10 AM
308 B
16
Indexable
n = int(input())

def SUM(n):
    ans = 0
    for i in str(n):
        ans += int(i)
    
    return ans

total = SUM(n)

while total > 26:
    total = SUM(total)

print("ABCDEFGHIJKLMNOPQRSTUVWXYZ"[total-1],end="")
Editor is loading...