~reviewer/hello-hut

ref: 1e45c58ca22f8c0564fb79497da957650f89e6b0 hello-hut/src/hello_hut/greetings.py -rw-r--r-- 261 bytes
1e45c58c — Mira Okafor cli: accept the name as a positional argument 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