Use LoudNotifier
Input
run_sequence('loud', ['hi'])
Output
(['Notified: HI'], 0)
LoudNotifier uppercases messages then uses the base Notifier to append the message to the log. Counting is absent, so count is 0.
Full lesson preview
Override methods in subclasses but call super() so the parent's behavior is preserved and extended.
Problem statement
Task
Examples
Input
run_sequence('loud', ['hi'])
Output
(['Notified: HI'], 0)
LoudNotifier uppercases messages then uses the base Notifier to append the message to the log. Counting is absent, so count is 0.
Input format
Output format
Constraints
Samples
Input
run_sequence('count', ['a','b'])
Output
(['Notified: a', 'Notified: b'], 2)
CountingNotifier increases count for each notify while still appending the base log entries.