From 111c5b6e5679dc2dd035521eee0c331bf50c90c3 Mon Sep 17 00:00:00 2001 From: Isabella Lombardi Date: Wed, 13 Dec 2023 22:55:17 +0100 Subject: [PATCH] New fix bug030 --- source/BUG/strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/BUG/strings.py b/source/BUG/strings.py index a60a7b2..9c9169f 100644 --- a/source/BUG/strings.py +++ b/source/BUG/strings.py @@ -74,7 +74,7 @@ def extract_digits(s: str) -> str: """ BUG030: extract_digits should return a string containing only the digits from the input string, not convert it to int. """ - result = str(s) + result = ''.join(char for char in s if char.isdigit()) return result