22 Useful Snippets to Code like a Pro in Python | by Haider Imtiaz | May, 2021 | Python in Plain English

PHOTO EMBED

Fri Jun 18 2021 00:43:01 GMT+0000 (UTC)

Saved by @admariner

def capitalize(String):
    return String.title()
capitalize("shop") # [Shop]
capitalize("python programming") # [Python Programming]
capitalize("how are you!") # [How Are You!]
content_copyCOPY

https://python.plainenglish.io/22-useful-snippets-to-code-like-a-pro-in-python-1d0dcaacac69