python program to get a space for a particular word in a given string
Answers
Answered by
1
Answer:
Python | Extract words from given string
Method #1 : Using split() Using split function, we can split the string into a list of words and is most generic and recommended method if one wished to accomplish this particular task. ...
Method #2 : Using regex( findall() ) ...
Method #3 : Using regex() + string.punctuation.
Similar questions
Science,
4 months ago
Math,
4 months ago
Science,
4 months ago
Math,
7 months ago
India Languages,
11 months ago
Biology,
11 months ago
Social Sciences,
11 months ago