## Example - Find the indices in a list where the item is a multiple of 7
def multiple_7(l):
indices_7 = []
for i in range(len(l)):
if(i%7 == 0):
indices_7 += [i]
return indices_7 ## list of all indices where the item is a multiple of 7
l = [2, 3, 7, 4, 14, 9] ## multiple_7 should return [2, 4]
print(multiple_7(l))
I get output [0] which is obviously not right...