...

/

Challenge: Decode the Message

Challenge: Decode the Message

Test your understanding of decorators and closures with these coding questions.

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_message should handle the filtering (keep only digits).
  • A decorator decode should wrap clean_message and return the cleaned digits as a string.

...