From 481df1dcb726ffe0b95acab744a9ea8cf6f0f569 Mon Sep 17 00:00:00 2001 From: arutrr0 <126869137+arutrr0@users.noreply.github.com> Date: Sat, 11 Mar 2023 14:44:44 +0100 Subject: [PATCH] Update Day_23.md --- Status/Day_23.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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**