This assignment demonstrates creating a custom utility module (text_utils.py
) and importing it in the main script with an alias.
- Reverse a string.
- Capitalize each word in a string.
- Shows how to use module aliasing (
import text_utils as tu
).
text_utils.py
→ contains string manipulation functions.main_text_utils.py
→ main script that imports and uses the functions.
python3 main_text_utils.py