the letter 'oa typeerror is raised if the input string contains extraneous characters or is incorrectly padded encode(sencodes byte string using base (hexencoding decode( [,casefold]decodes string using base (hexencoding if casefold is trueletters may be uppercase or lowercase otherwisehexadecimal letters ' '-'fmust be uppercase (the defaultraises typeerror if the input string contains extraneous characters or is malformed in any way the following functions are part of an older base module interface that you may see used in existing python codedecode(inputoutputdecodes base -encoded data input is filename or file object open for reading output is filename or file object open for writing in binary mode decodestring(sdecodes base -encoded strings returns string containing the decoded binary data encode(inputoutputencodes data using base input is filename or file object open for reading in binary mode output is filename or file object open for writing encodestring(sencodes byte stringsusing base binascii the binascii module contains low-level functions for converting data between binary and variety of ascii encodingssuch as base binhexand uuencoding b_uu(sconverts line of uuencoded text to binary and returns byte string lines normally contain (binarybytesexcept for the last line that may be less line data may be followed by whitespace a_uu(dataconverts string of binary data to line of uuencoded ascii characters the length of data should not be more than bytes otherwisethe error exception is raised b_base (stringconverts string of base -encoded text to binary and returns byte string a_base (dataconverts string of binary data to line of base -encoded ascii characters the length of data should not be more than bytes if the resulting output is to be transmitted through email (otherwise it might get truncatedf lib fl ff