Question: 2. Write a python program that returns the reverse of a given string. def reverse (str1) For example reverse(I am here) returns ereh ma I.

2. Write a python program that returns the reverse of a given string. def reverse (str1) For example reverse(I am here") returns ereh ma I. Using this, write a function that checks if a given string is a palindrome. def isPalindrome (str1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
