

txt = "esteesuntextosinespaciosgeneradoporesterodrigogamba"
words = {
    "este","es","un","text","sin",
    "espacio","generado","por"
}


def generate_text():
    
    words=[]

    def eval_word(text):
        # Eval if text is found in dict
        if text in words:

        left = text[1:]
        right = text[:-1]
        
    for word in words:
        eval_words()

    pass


if __name__ == '__main__':
    generate_text)()