diff --git a/Status/Day_23.md b/Status/Day_23.md index d7cf0c6..ba441e3 100644 --- a/Status/Day_23.md +++ b/Status/Day_23.md @@ -177,7 +177,24 @@ def displayer(groups): displayer(grouper(string, width_length)) ``` + +```python +"""solution by : Arutrr0 +""" +def splitter(word, width): + while len(word) > 0: + snippet = "" + if len(word) < width: + width = len(word) + for i in range(width): + snippet += word[i] + print(snippet) + word = word[width:] + +splitter("ABCDEFGHIJKLIMNOQRSTUVWXYZ", 4) +""" --- + # Question 97 ### **Question**