Hello I am trying to figure out how to go about taking the 3 outputs I have here and reversing the order of them, hopefully without having to remove what I have
My code is:
x = int(input())
while (x > 0):
remainder = x % 2
x = x // 2
if remainder == 0:
print(0, end=' ')
else:
print(1, end=' ')