I just need to know why the code generated numbers that are not divisible by 5.
for x in range (10,20):
#if (x == 15): break
if (x % 5 == 0) : continue
print(x)
Is my understanding correct, that x % 5 == 0
means all x
values that have a remainder of 0
when divided by 5
? So would it mean that the code should generate all values that are divisible by 5
?