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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here