Question: Problem 1 A palindrome is defined as a string ( i . e . , sequence of characters ) that are the same forwards and
Problem
A palindrome is defined as a string ie sequence of characters that are the same forwards and backwards. For example, Racecar is a palindrome. However, Tea is not a palindrome. Write a function that takes a string as input and returns a boolean indicating whether the input is a palindrome or not.
:
# write your code in this block def palindrometestinputstring: : # test case provided testinput 'Rotator' # expected output rounded to two decimal places for test expectedoutput True # actual output # test your code here : # write your test case input here # expected output for test case
ipykernel Idle
Mode: Command
Col
hwpythonrefresher.ipynb
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
