neo1973-germany/unitc/decimalbinär.py
PatrickBeck b1217d34a7 initial revision of unit_converter
git-svn-id: http://www.neo1973-germany.de/svn@38 46df4e5c-bc4e-4628-a0fc-830ba316316d
2008-03-13 16:41:13 +00:00

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,