I have to do something like below. I have one instance v1
and from there on, I have to create other instances by running certain function over it in a recurring way.
v2 = vclass.makesomething(v1,a).attribute1()
v3 = vclass.makesomething(v2,a).attribute1()
v4 = vclass.makesomething(v3,a).attribute1()
.
.
.
The only thing I thought was using a change in name of variable like having v+str(i)
but that is a bad way to proceed to the problem. Is there a way to create a recurring code for this?
May be I have phrased the question badly, but I did not know how should I express the problem.
second method I found to work along with what @Duck suggested,
vtemplist = [vertex1]
for i in range(number_of_instances_needed)):
vtemplist.append(vclass.makesomething(vtemplist[-1],a).attribute1())