pupy.werd

String Methods

Module Contents

binary_string(number)

Number to binary string

Parameters:number – some number (an integer) to turn into a binary string
Returns:Some string which is the binary string
string_score(strang)

Sum of letter values where a==1 and z == 26

Parameters:strang (str) – string to be scored
Returns:-> score of the string
Return type:int
is_palindrome(string)

True a string is a palindrome; False if string is not a palindrome.

Parameters:string