fork download
  1. sentence = "Wow,this was really helpfull!"
  2. punctuation = "!\"#$%&'()*+,-./:;<=>?@[\]^`{|}~"
  3. print( "".join([c if c not in punctuation else f' {c} ' for c in sentence]).strip().split() )
Success #stdin #stdout 0.02s 9072KB
stdin
Standard input is empty
stdout
['Wow', ',', 'this', 'was', 'really', 'helpfull', '!']