Skip to main content

Practice · 1 of 2

Notifiable Protocol

CHALLENGE
Difficulty: intermediate+25 XP

Define a @runtime_checkable Protocol named Notifiable with method send(message: str) -> None. Then implement class EmailSink with send appending to its own .sent list. backup(n) below must work with any Notifiable.

Back to lesson: Practice: Protocol Drills