>>> symmetrics("boy great bevy bully") ['bevy','boy'] >>> symmetrics("There is a car and a book;") ['a']
All I can think about the solution is this but I can't run it since it's wrong:
def symmetrics(text): punc_char= ",.?!:'\/" for letter in text: if letter in punc_char: text = text.replace(letter, ' ') alpha1 = 'abcdefghijklmnopqrstuvwxyz' alpha2 = 'zyxwvutsrqponmlkjihgfedcba' sym =  for word in text.lower().split(): n = range(0,len(word)) if word[n] == word[len(word)-1-n]: sym.append(word) return sym
The code above doesn't take into account the position of alpha1 and alpha2 as I don't know how to put it. Is there anyone know how to do this?