Python-oefening

Repeat Louder

Meld je aan om je oplossing in te dienen en feedback te krijgen.

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!"])