convert an entire string to ascii uppercase letters by looking for lowercase ascii letters and subtracting 32 from their integer representation to get the uppercase letter upperwow wow upperhello hello upperwhat what upperwh32 wh32 convert an entire string to ascii uppercase letters by looking for lowercase ascii letters and subtracting 32 from their integer representation to get the uppercase letter upper wow wow upper hello hello upper what what upper wh 32 wh 32
def upper(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()