Question: Problem 1 A palindrome is defined as a string ( i . e . , sequence of characters ) that are the same forwards and

Problem 1
A palindrome is defined as a string (i.e., 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.
[16]:
# write your code in this block def palindrome_test(input_string): []: # test case 1(provided) test_input_1= 'Rotator' # expected output (rounded to two decimal places) for test 1 expected_output_1= True # actual output # test your code here ...[]: # write your test case 2 input here ... # expected output for test case 2
3(ipykernel)| Idle
Mode: Command
Ln3,Col5
hw_02_python_refresher.ipynb
1
Problem 1 A palindrome is defined as a string ( i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Programming Questions!