diff --git a/solutions/list_to_string.py b/solutions/list_to_string.py index 3435d0bb1..363b12dc0 100644 --- a/solutions/list_to_string.py +++ b/solutions/list_to_string.py @@ -36,14 +36,14 @@ def list_to_string(lst: list) -> str: - If the input is `None`. - If the list is empty. - >>> list_to_string([1, -4, 3.14]) - '1-43.14' + >>> list_to_string([1, -4, 3.14]) + '1-43.14' - >>> list_to_string([True, 'hello']) - 'Truehello' + >>> list_to_string([True, 'hello']) + 'Truehello' - >>> list_to_string(['cat', 'hat', 'bat']) - 'cathatbat' + >>> list_to_string(['cat', 'hat', 'bat']) + 'cathatbat' """ # Validate Input assert isinstance(lst, list), "Input must be a list." diff --git a/solutions/tests/test_list_to_string.py b/solutions/tests/test_list_to_string.py index db3769c62..1c7aa2fdf 100644 --- a/solutions/tests/test_list_to_string.py +++ b/solutions/tests/test_list_to_string.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ -Module: test_list_to_string +Module: test_list_to_string. Description: This module contains test cases for the `list_to_string` function defined