Python  1.0
Functions
_06a_palindroma Namespace Reference

Checking for palindromes. More...

Functions

def palindrome (str)
 Checks whether a string is a palindrome. More...
 
def main ()
 

Detailed Description

Checking for palindromes.

Examples:

  1. civic, deified, dewed, kayak, level, madam, minim,
  2. racecar, radar, redder, refer, rotator, rotavator, rotor,
  3. sagas, solos, sexes, stats.
Author
Paulo Roma

Function Documentation

◆ main()

def _06a_palindroma.main ( )

◆ palindrome()

def _06a_palindroma.palindrome (   str)

Checks whether a string is a palindrome.

A palindrome is a word or phrase which is the same when spelt in reverse.

Parameters
strgiven string.
Returns
True if s is a palindrome, and False otherwise.

Referenced by main().