Question: Problem 1. Write a function (5 points) Write a function reverse_word(word) that takes a word and returns the word backwards. The function should work with

 Problem 1. Write a function (5 points) Write a function reverse_word(word)

Problem 1. Write a function (5 points) Write a function reverse_word(word) that takes a word and returns the word backwards. The function should work with the following code: if _name_ =n-main_' backward_word = reverse_word ('he110') assert backword_word == 'olleh" backward_word = reverse_word('madam' ) assert backword_word ==- 'madan' Name your file backwards.py and upload it here. Problem 2. Write a function (5 points) A palindrome is a word, phrase, or sequence that reads the same backward as forward. Write a function is_palindrome that verifies if a word is a palindrome. The function should work with the following code: if _name_ = '_-main_': assert is_palidrome('madam') == True assert is_palidrome ('hel10') == False Name your file palindrome.py and upload it here

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 Databases Questions!