I am trying to make a programm that converts a decimal number like 79 to a 
binary number.
where it asks you for a number then produces the binary.
so far I have this:

x = (input("Enter number: "))
b = 2.0
while x > 0:
    print x
    x = x/b

I need it to show the remainder. like remainder 1 or 0 the put all of them in a 
list that is backwards.
Any Ideas


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to