Skip to main content

str_to_list

Convert string to list.

def str_to_list(
s: str
) - > list[str]

Convert string to list.

Parameters

NameTypeDescription
sstrThe comma-separated string to be split into a list of individual elements.

Returns

TypeDescription
list[str]A list of strings generated by splitting the input string at each comma character.