Skip to main content
Mutability 0 of 6 activities solved
  1. Mutability Not yet read
  2. Mutability: quiz Not yet read
  3. Lower Rent Not yet solved
  4. Appending Strings Not yet solved
  5. Repeat Louder Not yet solved
  6. Wrong Return Not yet solved
Next series Exploring a large program
Mutability

Repeat Louder

Sign in to hand in your solution and get feedback.

from bakery import assert_equal exclamations = [] def make_exclamations(messages): for message in messages: exclamations.append(message + "!") return exclamations assert_equal(make_exclamations(["Hi", "I'm Ada"]), ["Hi!", "I'm Ada!"]) assert_equal(make_exclamations(["Woah", "Count these"]), ["Woah!", "Count these!"])