iterate over a list to change variable in python : I have a list of words and I want to iterate over it to pull groups of 5 and assign them to a variable as strings which I then run some code and then change the variable so that my output looks something like this

    words = ['word1', 'word2', 'word3', 'word4', 'word5', 'word6', 'word7', 'word8']

    var = 'word1', 'word2', 'word3', 'word4', 'word5'
    print(var)
    var = 'word6', 'word7', 'word8'
    print(var)
    
