Skip to content

Commit

Permalink
some formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
FalaqMajeed committed Dec 30, 2024
1 parent 9e8e89b commit 0616185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions solutions/list_to_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion solutions/tests/test_list_to_string.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0616185

Please sign in to comment.