Return True if s is a palindrome otherwise return False. >>> all(is_palindrome_slice(key) == value for key, value in test_data.items()) True
(s: str)
| 72 | |
| 73 | |
| 74 | def is_palindrome_slice(s: str) -> bool: |
| 75 | """ |
| 76 | Return True if s is a palindrome otherwise return False. |
| 77 | |
| 78 | >>> all(is_palindrome_slice(key) == value for key, value in test_data.items()) |
| 79 | True |
| 80 | """ |
| 81 | return s == s[::-1] |
| 82 | |
| 83 | |
| 84 | def benchmark_function(name: str) -> None: |