Answers for "how to extract words from string in python"

0

how to extract words from string in python

string = "This is demo string"
words = string.split()
for word in words:
  print(word)
Posted by: Guest on April-18-2022

Code answers related to "how to extract words from string in python"

Python Answers by Framework

Browse Popular Code Answers by Language