You have syntax issue as @eyllanesc pointed. Just change it to this, it will be fine:
sum = 0
for t in range(1000):
if t % 3 == 0 or t % 5 == 0:
sum += t
print(sum)
solved Project Euler Problem #1 – Not getting the right answer
You have syntax issue as @eyllanesc pointed. Just change it to this, it will be fine:
sum = 0
for t in range(1000):
if t % 3 == 0 or t % 5 == 0:
sum += t
print(sum)
solved Project Euler Problem #1 – Not getting the right answer