Binary

2007-06-08 Thread Brain Murphy
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

programs

2006-03-09 Thread Brain Murphy
I still dont know a lot about python, it seems that the only programs that i can write are like dos. I have some songs on my computer and was wondering if i could make it some that when a certain program is ran this song will play. Can i do this?  can i make my programs look better looking when run?  Brian  
		Yahoo! Messenger 
 NEW - crystal clear PC to PC 
calling worldwide with voicemail 
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: New python.org website

2006-03-07 Thread Brain Murphy
I dont know, when i went to the web site i wasent sure i was in the right place, i prefer the old web site, it (no pun intendid) said Python all over it. the logog was good and i had no trouble finding anything when i first went there.  BrianMichael Tobis [EMAIL PROTECTED] wrote:  While the new one is much better than the old website, the logo strikesme as awful.I tried to suggest repurposing the much better PyCon logo, but itdidn't raise the vast groundswell of support I wanted it to. But forwhatever its worth I'll try again. My rant is here:http://tinyurl.com/rkq3smt-- http://mail.python.org/mailman/listinfo/python-list
		Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.-- 
http://mail.python.org/mailman/listinfo/python-list

Re: newbie question

2006-03-01 Thread Brain Murphy
i keep on getting this message that says socket error, then says that python was unable to connect to its start up process.  what does this mean and how can i fix it?  D [EMAIL PROTECTED] wrote:  Yep, that should work. Just keep in mind that if python.exe is not inyour path, you will need to either specify the entire path to it(i.e. 'C:\python24\python C:\path\to\script\myscript.py'), or cd intoits directory first (i.e. if you want to just run 'pythonC:\path\to\script\myscript.py').Doug-- http://mail.python.org/mailman/listinfo/python-list
		To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.-- 
http://mail.python.org/mailman/listinfo/python-list

newbie

2006-02-27 Thread Brain Murphy
I have some questions, 1) I am trying to have multiple def's but it is not working.  for instance, i am using the tutoreals and am trying to combine the phone book as well as the grades..ect so that it would look somthing like this:def print_options():   print "options:"   print " 'p' print options"   print " 'g' grades"   print " 'b' phonebook"   print " 'q' quit"  choice ="p"  while choice != "q":   if choice == "g": 
  def print_menu():  ...ect  what am i doing wrong.also i have heard that there are no crackers using python why is this??Brian
		Win a BlackBerry device from O2 with Yahoo!. Enter now.-- 
http://mail.python.org/mailman/listinfo/python-list

python

2006-02-06 Thread Brain Murphy
I am new to python and programming but i was wondering, what can i program with python??  Brian
		Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.-- 
http://mail.python.org/mailman/listinfo/python-list