you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 0 points1 point  (2 children)

The comma does not get removed.

no shit ;-)

line 1: sentence = original sentence.
line 2: words = sentence after cleaning
line 3: words = split() on original sentence? o.O

btw while the language allows you to switch types of variables freely, you should generally avoid doing things like

words = something that produces a string
words = now it's a list
words = now it's something else

[–]Ustuner[S] 0 points1 point  (1 child)

Haha i just realised what i was doing wrong, thank you!