from collections import OrderedDict

list1 = []
list2 = []

sum = 0
for x in range(3, 1000, 3):
    list1.append(x)

for j in range(5, 1000, 5):
    list2.append(j)

list1.extend(list2)
nonDuplicateList = list(OrderedDict.fromkeys(list1))
list1.sort()
for z in nonDuplicateList:
    sum += z

# print(nonDuplicateList)
print("The sum of all the multiples of 3 or 5 below 1000 is:", sum)







63e8cc9177e8ae9aae42d4becbf30f679477a02a
<mask token>

<mask token>
for x in range(3, 1000, 3):
    list1.append(x)
for j in range(5, 1000, 5):
    list2.append(j)
list1.extend(list2)
<mask token>
list1.sort()
for z in nonDuplicateList:
    sum += z
print('The sum of all the multiples of 3 or 5 below 1000 is:', sum)

<mask token>
list1 = []
list2 = []
sum = 0
for x in range(3, 1000, 3):
    list1.append(x)
for j in range(5, 1000, 5):
    list2.append(j)
list1.extend(list2)
nonDuplicateList = list(OrderedDict.fromkeys(list1))
list1.sort()
for z in nonDuplicateList:
    sum += z
print('The sum of all the multiples of 3 or 5 below 1000 is:', sum)

from collections import OrderedDict
list1 = []
list2 = []
sum = 0
for x in range(3, 1000, 3):
    list1.append(x)
for j in range(5, 1000, 5):
    list2.append(j)
list1.extend(list2)
nonDuplicateList = list(OrderedDict.fromkeys(list1))
list1.sort()
for z in nonDuplicateList:
    sum += z
print('The sum of all the multiples of 3 or 5 below 1000 is:', sum)

from collections import OrderedDict

list1 = []
list2 = []

sum = 0
for x in range(3, 1000, 3):
    list1.append(x)

for j in range(5, 1000, 5):
    list2.append(j)

list1.extend(list2)
nonDuplicateList = list(OrderedDict.fromkeys(list1))
list1.sort()
for z in nonDuplicateList:
    sum += z

# print(nonDuplicateList)
print("The sum of all the multiples of 3 or 5 below 1000 is:", sum)






