API

string_ops

package_creation.string_ops.capitalize_words(s: str) str[source]

Capitalize the first letter of each word in the given string. Args: s (str): The input string to capitalize. Returns: str: A new string with each word capitalized.

package_creation.string_ops.count_vowels(s: str) int[source]

Count the number of vowels in the given string. Args: s (str): The input string to count vowels from. Returns: int: The number of vowels in the string.

package_creation.string_ops.reverse_string(s: str) str[source]

Reverse the given string. Args: s (str): The input string to be reversed. Returns: str: The reversed string.