will convert the entire string to lowercase letters lowerwow wow lowerhellzo hellzo lowerwhat what lowerwh32 wh32 lowerwhat what converting to ascii value obtaining the integer representation and checking to see if the character is a capital letter if it is a capital letter it is shifted by 32 making it a lowercase letter will convert the entire string to lowercase letters lower wow wow lower hellzo hellzo lower what what lower wh 32 wh 32 lower what what converting to ascii value obtaining the integer representation and checking to see if the character is a capital letter if it is a capital letter it is shifted by 32 making it a lowercase letter
def lower(word: str) -> str:
    

    
    
    
    return "".join(chr(ord(char) + 32) if "A" <= char <= "Z" else char for char in word)


if __name__ == "__main__":
    from doctest import testmod

    testmod()