Python  1.0
Functions
_06b_palindromas_mutuas Namespace Reference

Checking for mutual palindromes. More...

Functions

def areMutualPalindromes (str1, str2)
 Checks whether two strings are mutual palindromes. More...
 
def main ()
 

Detailed Description

Checking for mutual palindromes.

Examples:

  1. stressed / desserts
  2. samaroid (resembling a samara) / dioramas
  3. rewarder / redrawer
  4. animal / lamina
  5. departer / retraped (verb trape is recorded as an alternative spelling of traipse)

Function Documentation

◆ areMutualPalindromes()

def _06b_palindromas_mutuas.areMutualPalindromes (   str1,
  str2 
)

Checks whether two strings are mutual palindromes.

Two words are mutual palindromes when they are the same when one of them is spelt in reverse.

Parameters
str1firts string.
str2second string.
Returns
True is str1 and str2 are mutual palindromes, and False otherwise.

Referenced by main().

◆ main()

def _06b_palindromas_mutuas.main ( )