Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function named palindrome_word(). It will take in a string and return True or False. If the string is King, are you glad you
Write a function named palindrome_word(). It will take in a string and return True or False. If the string is "King, are you glad you are king?", it will return True. That is it will test if the given string is a palindrome by words.
6b. Write a function named palindrome word(). It will take in a string and return True or False. If the string is "King, are you glad you are king?", it will return True. That is it will test if the given string is a palindrome by words. (5 marks) }]: N 1 def palindrome word(a str): NMONO 10 my_string= "King, are you glad you are king?" 11 print (palindrome_word(my_string)) TrueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started