Challenge: Decode the Message
Test your understanding of decorators and closures with these coding questions.
Problem 1
You are given a message (string). Your task is to extract only the digits from the message.
- The function
clean_message
should handle the filtering (keep only digits). - A decorator
decode
should wrapclean_message
and return the cleaned digits as a string.
...