atbash cipher is mapping the alphabet to it s reverse so if we take a as it is the first letter we change it to the last z example attack at dawn zggzxp zg wzdm complexity on
def atbash(s):
    translated = ""
    for i in range(len(s)):
        n = ord(s[i])
        
        if s[i].isalpha():
            
            if s[i].isupper():
                x = n - ord('A')
                translated += chr(ord('Z') - x)
            
            if s[i].islower():
                x = n - ord('a')
                translated += chr(ord('z') - x)
        else:
            translated += s[i]
    return translated