Challenge: Decode the Message
Test your understanding of decorators and closures with these coding questions.
We'll cover the following...
We'll cover the following...
Problem 1
You are given a message (string). Your task is to extract only the digits from the message.
- The function
clean_messageshould handle the filtering (keep only digits). - A decorator
decodeshould wrapclean_messageand return the cleaned digits as a string.