Question: Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backward.

Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backward. The words “mom, ‘dad”, “noon” for instance are palindromes. (include type annotations for all functions except for main, the python reverse() method is not allowed to be used with this program) 1. write a function def isPalindrome() to check if the string entered is a palindrome.2. write the main() function to allow the user to enter the string and prints if it is a palindrome or not. 3. Use at least 4 test cases 2 for true and 2 for false.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to write a Python program that satisfies the requirements We will proceed with the following steps Step 1 Define the isP... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

609aaf325b9df_30885.pdf

180 KBs PDF File

Word file Icon

609aaf325b9df_30885.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!