Hi All
Please some one Help me find out why this code doesn't work:
codes=['zlib', 'zip', 'base64', 'hex', 'utf-8']
def encoder(str, i):
return str.encode(codes[i])
def decoder(str, i):
return str.decode(codes[i])
en = encoder('Some string here', 2)
print en