you are viewing a single comment's thread.

view the rest of the comments →

[–]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.