Skip to content

Commit

Permalink
New fix bug030
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabella Lombardi authored and Isabella Lombardi committed Dec 13, 2023
1 parent 69b587f commit 111c5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/BUG/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 111c5b6

Please sign in to comment.