Skip to content

Commit 25bd076

Browse files
committed
Fix empty string bug
1 parent 4a5c257 commit 25bd076

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

count_group/count_group.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22
def count_group(string: str) -> list:
3+
if not string:
4+
return []
35
counter = 0
46
group = []
57
temp = string[0]

0 commit comments

Comments
 (0)