strings.capitalize ================== .. py:module:: strings.capitalize Functions --------- .. autoapisummary:: strings.capitalize.capitalize Module Contents --------------- .. py:function:: capitalize(sentence: str) -> str Capitalizes the first letter of a sentence or word. >>> capitalize("hello world") 'Hello world' >>> capitalize("123 hello world") '123 hello world' >>> capitalize(" hello world") ' hello world' >>> capitalize("a") 'A' >>> capitalize("") ''