Ответ:
def reverse(str: str) -> str:
return str[::-1] #
def is_palindrome(str: str) -> bool:
return str == reverse(str)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
def reverse(str: str) -> str:
return str[::-1] #
def is_palindrome(str: str) -> bool:
return str == reverse(str)