diff --git a/README.md b/README.md index 06b9d71..3175ea2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # sentences-separator-to-words From sentences to words by separate the word processing and delegate them into array + +- Text processing unit +- Split the words from sentences \ No newline at end of file diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..f9a8c72 --- /dev/null +++ b/src/main.py @@ -0,0 +1,5 @@ +from separator import convertToWords + +sentences = ["Welcome to CUBETIQ Solution"] + +print(convertToWords(sentences)) \ No newline at end of file diff --git a/src/separator.py b/src/separator.py new file mode 100644 index 0000000..4e475dd --- /dev/null +++ b/src/separator.py @@ -0,0 +1,2 @@ +def convertToWords(sentences): + return (sentences[0].split()) \ No newline at end of file