Thinking...
We need to respond with Python code defining function is_palindrome(s)
returning True/False if s palindrome, plus one test case. Must output just
answer? Likely provide code snippet with test.
Write:
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("madam")) # should print True
Also maybe a non-palindrome example test: print(is_palindrome("hello")) ->
False.
But "One test case" maybe they want to run one test. Provide function and c
call with string.
Let's produce final answer.
...done thinking.
Here’s a simple implementation together with one quick test:
```python
def is_palindrome(s):
"""
Return True if the string `s` reads the same forward and backward,
otherwise return False.
"""
# Normalize to lower‑case (optional) and remove spaces if you want that
that behavior:
s = s.lower()
# Compare with its reverse
return s == s[::-1]
# One test case – "madam" is a palindrome
print(is_palindrome("madam")) # → True
# Example showing it also works for non‑palindromes (optional)
print(is_palindrome("hello")) # → False
```