x = 23
while x != 0:
g = x % 2
x = x //2
basically this small program converts a number to binary right . I want to store the value printed out by g every new iterations value of g to some variable . when I try to do some like this : o = g + 1 .it adds 1 to every iteration of the value of one . please and let me know if I need to clarify