#program to print elements of a List in separate lines along with both indexes of the element
l=['q','w','e','r','t','y']
length=len(l)
for a in range(length):
print("At indexes",a,"and",(a-length),"element:",l[a])
Comments
Post a Comment