True/False Looping based on a given number of cycle

The key is to use the GHPython compone with list access. Here is the main guide on this:

So once the list is input, then let Python roll over it:

"""Grasshopper Script"""
lst = []
for i in range(len(x)):
   lst.append(x[i])

a=lst

image