I have written a sample code.
planets=[('aries','mars'),('tarus','venus'),('gemini','mercury'), ('cancer','moon')]
print(planets)
asc=[ ]
for i in range(0,len(planets)):
asc.append(planets[(i+1)%(len(planets))])
print(asc)
The first key is the sign and followed by its lord.
If aries is the ascendant, the sequence of houses and lords are as per the list. If tarus is the asc then the first will be tarus and the last will be aries and so
In my code I am able to print out only the second one. Why is my code not giving me the entire output?