Computer Science, asked by sangithasaisri, 7 months ago

python program to get a space for a particular word in a given string​

Answers

Answered by itzcutiepie777
1

Answer:

\pink{\boxed{\boxed{\boxed{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.

<marquee behaviour-move><font color="orange"><h1>#itzcutiepie </h1></marquee>

Similar questions