(BTW, I just started coding, so I'm sorry if it's not advanced)

- Code: Select all
`factor = 0`

product = 0

SumOfProducts = 0

while True:

if product == 999:

ThreeProductTotal = SumOfProducts

break

else:

factor += 1

product = 3 * factor

SumOfProducts += product

factor = 0

product = 0

SumOfProducts = 0

while True:

if product == 995:

FiveProductTotal = SumOfProducts

break

else:

factor += 1

product = 5 * factor

SumOfProducts += product

print(ThreeProductTotal + FiveProductTotal)