I am new to Python, so I might be missing something simple.
I am given an example:
string = \"The , world , is , a , happy , place \"
Simple thanks to the convenient string methods in Python:
print "\n".join(token.strip() for token in string.split(","))
Output:
The world is a happy place
By the way, the word string is a bad choice for variable name (there is an string module in Python).
string