+ 1
How can you print a number if i does not equal a number
2 Answers
+ 2
Is 'i' one of your variables? If so, you could try
if i != n:
print (n)
Variables n and i should be defined first. Hope I've understood you correctly.
0
number inside loop? if i got your question right try
x = x + 1
for each iteration
and then simply print(x)
x should be initialized before 1st usage