strings.upper

Functions

upper(→ str)

Convert an entire string to ASCII uppercase letters by looking for lowercase ASCII

Module Contents

strings.upper.upper(word: str) str

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'