Coding Challenge: Palindrome Finder

Learn how to write a function that finds a string is a palindrome or not.

Problem statement

A palindrome is a word or sentence that reads the same forward or backward, ignoring punctuation, case, and spacing. Write a program that returns true if the word is a palindrome and false otherwise.

Input

palindrome("racecar");
palindrome("radar");
palindrome("beautiful");

Expected output

true
true
false

Coding exercise

Get hands-on with 1400+ tech skills courses.