please give me the solution for long encoded string in python or c
Answers
Answer:
The Ninth Commandment of the Ten Commandments could refer to: "Thou shalt not bear false witness against thy neighbour" under the Philonic division used by Hellenistic Jews, Greek Orthodox and Protestants except Lutherans, or the Talmudic division of the third-century Jewish Talmud.
I have a dictionary assembled in the format {'character to be encoded':'corresponding binary code', etc.}. I've been encoding like this:
def encode(self, text):
def encode(self, text): encoded = ""
def encode(self, text): encoded = "" def generator():
def encode(self, text): encoded = "" def generator(): for ch in text:
def encode(self, text): encoded = "" def generator(): for ch in text: yield self.codes[ch] # Get the encoded representation from the dictionary
def encode(self, text): encoded = "" def generator(): for ch in text: yield self.codes[ch] # Get the encoded representation from the dictionary return ''.join(generator())