DevJourney · code I wrote while learning
String's Each Word.py
86 Bimport re
s = str(input("Enter statement: "))
res = re.findall(r"\w+", s)
print(res)DevJourney · code I wrote while learning
import re
s = str(input("Enter statement: "))
res = re.findall(r"\w+", s)
print(res)