Linked Questions

Popular Questions

I have a list of multiple integers and strings

['-200', ' 0', ' 200', ' 400', ' green', '0', '0', '200', '400', ' yellow', '200', '0', '200', '400', ' red']

I'm having difficulty separating the list every 5 elements and creating a new list with just 5 elements inside.

However, I don't want 3 different lists, i just want one that changes every time a new 5 elements goes through.

Related Questions