Introduction
In this lab, you will learn how to check if a string is a palindrome in Python. A palindrome is a sequence of characters that reads the same backward as forward, such as "madam" or "racecar".
The lab guides you through creating a Python script that defines a function is_palindrome
to identify palindromes. This involves processing the input text by converting it to lowercase and removing spaces, then comparing the processed text with its reversed version. You will also learn how to test the function with example words.