Medium difficulty task: Implement Python module tic
Task:
Create a Python module named tic at /app/tic.py (or as a package mounted at /app/tic/ with an init.py) that is importable as import tic.
The module must expose a module-level attribute:
author: a string with the exact value "Tom Martensen".
The tests only import tic and read tic.author and compare it to "Tom Martensen". You may add a small, self-contained API that does not alter author by default, but any such API should be optional and clearly separated from the required contract.
Requirements and edge cases:
On import, tic.author must be "Tom Martensen".
You may include a tiny, optional API to set or validate the author, but it must not change the default value unless explicitly invoked by that API.
If you add a setter, ensure reasonable input validation:
Only accepts strings
Enforces a reasonable length (e.g., 1–256 characters)
Provides clear errors (TypeError for non-strings, ValueError for invalid length)
Edge cases to consider:
Attempting to set a non-string author (e.g., None or 123) should raise TypeError.
Attempting to set an empty string or a string longer than the allowed maximum should raise ValueError.
Hints (not a full solution):
Keep the core contract simple: the default author must be exactly "Tom Martensen" for the standard import case.
Centralize validation logic in a small helper, e.g., _validate_author_name(name).
If you provide a set_author(name) function, ensure existing tests remain unaffected and only reveal the new behavior when used.
Implementation notes:
Place the code in /app/tic.py (or in /app/tic/init.py if you prefer a package).
Do not change how tests import tic or read tic.author.
The task remains a single-file/local-change task; a tiny internal helper is acceptable if isolated and well-documented.