DevJourney · code I wrote while learning

String's Each Word.py

86 B
import re

s = str(input("Enter statement: "))
res = re.findall(r"\w+", s)
print(res)