"""Greeting construction: pure functions with no I/O, easy to test."""
DEFAULT_NAME = "friend"
def greet(name=DEFAULT_NAME, shout=False):
"""Build a greeting such as "Hello, Ada!"."""
salutation = "Hello"
message = f"{salutation}, {name}!"
return message.upper() if shout else message