human
How to read formatted input in python?
assistant
Here is some code to get a list of of elements resulting from splitting user input by commas and stripping white space from each resulting string `s`

[s.strip() for s in input().split(',')]

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