human
Splitting string and removing whitespace Python
assistant
Here is some code to split string with comma (,) and remove whitespace from a string 'my_string'

[item.strip() for item in my_string.split(',')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.