split

split() splits on whitespace by default; pass a separator.

s = 'a,b,c'
parts = s.split(',')  # ['a','b','c']