Skip to content

Commit 9cb62db

Browse files
committed
Add docstring to palindrome function
1 parent 02c4f08 commit 9cb62db

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

strings/palindrome.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ def is_palindrome(s: str) -> bool:
2525
:param s: input string
2626
:return: True if palindrome, False otherwise
2727
"""
28-
Return True if s is a palindrome otherwise return False.
29-
30-
>>> all(is_palindrome(key) is value for key, value in test_data.items())
31-
True
32-
"""
33-
28+
3429
start_i = 0
3530
end_i = len(s) - 1
3631
while start_i < end_i:

0 commit comments

Comments
 (0)