How to identify NZEC error in the following code(python 3.6)

t=int(input())
for i in range(t):
transmorgifier=int(input())
number_of_minions=int(input())
dna_values=[]

for j in range(number_of_minions):
    charac_val=int(input())
    charac_val+=transmorgifier
    dna_values.append(charac_val)

for k in range(len(dna_values)):
    if dna_values[k]%7==0:
        print(k)

(Both the last and second-last forloops are under the first one)

The code seems correct. You may not be providing custom input if you’re using codechef IDE, or if you are, you might be missing some input. The code worked for this input:
1
41
4
23
22
43
2

I have just input random numbers. Can you send the problem link please?

https://www.codechef.com/FLMOCK01/problems/CHN15A. Thank you