Implement the Python function specified below. Return ONLY the indented function body, without repeating the…
Implement the Python function specified below. Return ONLY the indented function body, without repeating the…: a task in unslop-harbor (Harbor dataset). def is palindrome(string: str) - bool: """ Test if given string is a palindrome """ return string == string ::-1
The task
def is_palindrome(string: str) -> bool: """ Test if given string is a palindrome """ return string == string[::-1]
Part of rawmodels/unslop-harbor.