Consider the below list in Python.
c = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]
I want to create n strings where n = len(c)/6. So for this example, the expected output would be:
str1=1|2|3|4|5|6
str2=7|8|9|10|11|12
str3=13|14|15|16|17|18
How do I do it using loops? Note that the length of c will always be a multiple of 6.