~reviewer/hello-hut

ref: 15e971921026ae089eb37bb95ca445b310691e27 hello-hut/src/hello_hut/greetings.py -rw-r--r-- 261 bytes
15e97192 — Dana Whitfield Add pyproject.toml with a console script 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