human
What is a good Python function to turn string to list commas.
assistant
Here is a Python function to turn string to list commas

import re

def string2list(string):
    """Turns string to list of comma separated values."""
    return string.split(',')

# Enter the string
string = "cat,dog,airplane"

# Calling the function
print((string2list(string)))

#Example Output
# ['cat', 'dog', 'airplane']

#Remember to inspect code for bugs.