fork download
  1. test = "hello,how are you?I am fine,thank you. And you?"
  2.  
  3. print [t for x in test.split(",")
  4. for y in x.split(".")
  5. for z in y.split("?")
  6. for t in z.split()]
Success #stdin #stdout 0.03s 6356KB
stdin
Standard input is empty
stdout
['hello', 'how', 'are', 'you', 'I', 'am', 'fine', 'thank', 'you', 'And', 'you']