Question d’entretien chez RS Energy Group

Given a Python dictionary mapping letters to morse code, i.e. morse = {'a': '.-', 'b': '-...', etc}, write a function that takes a given string input and returns whether the morse code representation of that string is a palindrome

Réponse à la question d'entretien

Utilisateur anonyme

23 juil. 2019

Write a function that : 1. computes the morse code representation of the string 2. determines whether the resulting string is a palindrome