Palindrome or Not
Lesson 7 of 12 in Coddy's Python Interview Series course.
Challenge
EasyWrite a function is_palindrome that checks whether a word or phrase is palindrome or not
a1- string
And outputs a boolean, which is True if the reverse of the string is the same as the original, otherwise False
Example:
Input - Hannah
Expected Output - False
Try it yourself
def is_palindrome(a1):
# Write code hereAll lessons in Python Interview Series
1Crack Python Coding Interview
Lesser of two evensPangram Unique ElementsAnimal CrackersSpy GameMatching StringPalindrome or NotBlackJackFind DuplicatesEncodeHash 33First Non-Repeating Character