how to use a text file of positions and a text file of words to recreate a sentence : I must open the text files, use the positions and words that are stored in the text files, to recreate the user's original sentence. I want to recreate the sentence using only the text files 



    user's sentence = 'the cat sat on the cat mat'
    
    indivdual_words = ['the', 'cat', 'sat', 'on', 'mat']
    positions = [1, 2, 3, 4, 1, 2, 5]

    f = open('word_file.txt', 'w+')
    f.write(str(words))
    f.close()

    f = open('pos_file.txt', 'w+')
    f.write(str(positions))
    f.close()
