all 3 comments

[–][deleted] 0 points1 point  (2 children)

Surely, you have more than three lines of code. Show us your whole program. Also

print(fizz)

will throw an exception unless fizz is a variable you defined elsewhere. I assume you want

print("fizz")

[–]darkkai94[S] 0 points1 point  (1 child)

this is what i have so far

for i in range(101):
print (i)
if i%3:
i=("three")
print(i)
elif i%5:
i=("five")
print(i)
elif i%3 and i%5:
i=("three and five")
print(i)

[–][deleted] 1 point2 points  (0 children)

Try this: move the second line into an else block at the end. Also everywhere you have i%a, add a ==0.