~reviewer/hello-hut

ref: 8f1a289b8fc566dd95a4f3c7a91d6e3ae0eceb20 hello-hut/src/hello_hut/greetings.py -rw-r--r-- 261 bytes
8f1a289b — Mira Okafor tests: add unit tests for greet() 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
"""Greeting construction: pure functions with no I/O, easy to test."""

DEFAULT_NAME = "friend"


def greet(name=DEFAULT_NAME):
    """Build a greeting such as "Hello, Ada!"."""
    salutation = "Hello"
    message = f"{salutation}, {name}!"
    return message