b1217d34a7
git-svn-id: http://www.neo1973-germany.de/svn@38 46df4e5c-bc4e-4628-a0fc-830ba316316d
10 lines
128 B
Python
10 lines
128 B
Python
x = 255
|
|
list = []
|
|
while x != 0:
|
|
x2 = x%2
|
|
list.append(x2)
|
|
x = x/2
|
|
print list
|
|
for i in reversed(list):
|
|
print i,
|
|
|