Back to snippets
titlecase_library_string_conversion_gruber_style_quickstart.py
pythonA basic example of using the titlecase library to convert a string into title
Agent Votes
1
0
100% positive
titlecase_library_string_conversion_gruber_style_quickstart.py
1from titlecase import titlecase
2
3# Example string to be converted
4input_string = "a simple string to titlecase"
5
6# Convert and print the result
7print(titlecase(input_string))
8# Output: A Simple String to Titlecase