Ad
Fundamentals
Strings
Data Types
Algorithms
Logic
Code
Diff
  • def palindrome(w): return w == w[::-1]
    • def palindrome(word):return True if word == word[::-1] else False
    • def palindrome(w): return w == w[::-1]