human
Python: Split string by list of separators
assistant
Here is some code to split a string `string` by multiple separators `,` and `;`

[t.strip() for s in string.split(',') for t in s.split(';')]

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