Ответ:
1️⃣
def reverse_string(s):
return s[::-1]
2️⃣
def is_palindrome(s):
return s == s[::-1]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
1️⃣
def reverse_string(s):
return s[::-1]
2️⃣
def is_palindrome(s):
return s == s[::-1]