hi all. I’m doing course in Python(zero to pandas), In my 1st assignment submission I got remarks with "Problem 3 - Conditions and loops ". Saying that the total sum is wrong for me. could any one help me with this. I got total sum of “47460”.

# NUM LIST by increment of 7,in range(21,532)

a = 14

b = []

for i in range (a,533):

a += 7

if a<= 532:

b.append(a)

print(b)

# num list divisible by 7 between 18

d=[]

for i in b:

for j in range (7,19):

c = i%j

if c == 0:

d.append(i)

# print(’\n num list divisible by 7 between 18 :’,d)

# num list divisible by 534

for i in b:

if i == 534:

e = i%534

d.append(e)

print(’\n num list divisible by 7 between 18 and 534 :’,d)

# sum of all the numbers divisible by 7 between 18 and 534

result = 0

for k in range(0,len(d)):

result = result + d[k]

print( ‘\n sum_of_numbers :’,result )