this code should be in python: write a function that allows the input of a list of strings as its only parameter. Inside the body of the function find the first palindromic word and return it. If...


this code should be in python:


write a function that allows the input of a list of strings as its only parameter. Inside the body of the function find the first palindromic word and return it. If there is no such word, it should return an empty string. A string is palindromic if it reads the same forward and backward so for example If we call the function with [“dog”, “cat”, “car”, “level”, “dad”], the returned value should be “level”. Note that “dad” is also a palindrome, but it is not the first one.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here