You can split a string by using split(). The syntax is as follows...
split()
stringtosplit.split('whattosplitat')
To split your example at every comma and space, it would be:
s = 'str1, str2, str3, str4' s.split(', ')
1.4m articles
1.4m replys
5 comments
57.0k users