Menu
Coddy logo textTech

Palindrome or Not

Lesson 7 of 12 in Coddy's Python Interview Series course.

challenge icon

Challenge

Easy

Write 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 here

All lessons in Python Interview Series