I am working on animation effect that i need this pattern of numbers for one variable: 0, 0 , 1 , - 1 , 2 - 2 , 3 , -3… …-100,100.
well its not working
x = 0
a = 0
b = 0
while x < 100:
x = x + 1
a = a - 1
if x > a:
b = x
print b
elif x < a:
b = a
print b
else:
eventually i want to get reverse of it too