string_operators module

This module contains basic string operations.

string_operators.concatenate(str1, str2)[source]

Concatenates two strings.

Parameters: str1 (str): The first string. str2 (str): The second string.

Returns: str: The concatenation of the two strings.

string_operators.count_vowels(string)[source]

Counts the number of vowels in a string.

Parameters: string (str): The string to check.

Returns: int: The number of vowels in the string.

string_operators.reverse_string(string)[source]

Reverses a given string.

Parameters: string (str): The string to reverse.

Returns: str: The reversed string.

string_operators.to_uppercase(string)[source]

Converts the string to uppercase.

Parameters: string (str): The string to convert.

Returns: str: The string in uppercase.