0 out of 464 challenges solved
Write a function `string_to_tuple` that takes a string as input and returns a tuple containing all the characters of the string. The function should include all characters, including spaces and special characters. #### Example Usage ```python [main.nopy] print(string_to_tuple("hello")) # Output: ('h', 'e', 'l', 'l', 'o') print(string_to_tuple("123")) # Output: ('1', '2', '3') print(string_to_tuple("a b")) # Output: ('a', ' ', 'b') ```
def string_to_tuple(input_string): """ Convert the input string into a tuple of characters. Args: input_string (str): The string to convert. Returns: tuple: A tuple containing all characters of the input string. """ # Your code here pass