Re: a few questions.

2007-10-31 Thread Paul Hankin
On Oct 31, 10:10 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > for i in xrange(0,5): > hundreds, remainder=divmod(stores[i], 100) > print "Store: %i %s" % (i+1, hundreds*"*") Yes, or since you don't need 'remainder'... for i in range(5): hundreds = stores[i] // 100 print "Sto

Re: a few questions.

2007-10-31 Thread Larry Bates
Shawn Minisall wrote: > 1. whats the best way to round a result to 4 decimal places? > > I tried round, but then read that it only works with exponents of 10. > > I'm trying to do it on this piece of code. > > time = (distance / 4900) > > 2. What direction would I go in if I'm getting 5 inputs

Re: A few questions

2007-05-24 Thread scott
[EMAIL PROTECTED] wrote: > Just wanted to send a quick "Thank You!" to everyone who helped answer my > questions. This > list is awesome!! I'm finding the same, this list is amazing. There is a more welcome feeling than the C or C++ list I have seen. > I'm currently reading "How to Think Like

Re: A few questions

2007-05-22 Thread Urban, Gabor
Jay wrote: " 1. What are your views about Python vs Perl? Do you see one as better than the other?" They are different languages. Perl is very powerfull if you use it knowing potential problems. Python is definitely much easier to learn and use. "2. Is there a good book to start with while learni

Re: A few questions

2007-05-22 Thread Dave Baum
In article <[EMAIL PROTECTED]>, jay <[EMAIL PROTECTED]> wrote: > Hi, > > I'm totally new to Python and was hoping someone might be able to > answer a few questions for me: > > 1. What are your views about Python vs Perl? Do you see one as > better than the other? I introduced Python into

Re: A few questions

2007-05-21 Thread Kevin Walzer
jay wrote: > > Anyway, I had one more quick question... in order to run wxPython apps, > do I have to have MacPython, etc. loaded on each Mac (or PC) in order > for it to run any apps I write? Or is there a way to compile the code > to where I can distribute an app I write and the other user

Re: A few questions

2007-05-21 Thread Basilisk96
> After this I went to the tutorial and started trying out some of the > examples. I pasted the code to separate text files and then ran them > through a Terminal window. This stuff is freaking cool!!! Now I > just have to figure out how this all works! > "wxPython in Action" is a decent book fo

Re: A few questions

2007-05-21 Thread jay
Wow!! Thanks so much for your quick and helpful replies! I really appreciate it!! :-) I tried installing off 'wxPython2.8-osx-ansi-2.8.4.0-universal10.4- py2.5.dmg' on my OS 10.4.9 system which wouldn't install. So I installed off 'python-2.5-macosx.dmg' and then installed off 'wxPython

Re: A few questions

2007-05-21 Thread Basilisk96
> 2. Is there a good book to start with while learning Python? I'm > currently reading 'Python Essential Reference' by David M. Beazley. > So far it looks like a pretty good book, but would like more > tutorials to work with (I've also been reading through the tutorials > at 'python.org' which ha

Re: A few questions

2007-05-21 Thread Josiah Carlson
Christopher Arndt wrote: > I have a few quibles with your summary of Python's properties: > On 21 Mai, 08:16, John Nagle <[EMAIL PROTECTED]> wrote: >> Memory management >> is safe and managed by reference counts backed by a garbage collector. >> Weak references are supported. Built in data types a

Re: A few questions

2007-05-21 Thread Kevin Walzer
jay wrote: > 3. Currently, I write most of my code with Xcode (on the Mac platform) > using Applescript. This gives me GUI capabilities. Is there anything > you'd recommend that I could use for Python that would give me a GUI > interface? PyObjC allows you to write Cocoa GUI's from Python

Re: A few questions

2007-05-21 Thread Christopher Arndt
I have a few quibles with your summary of Python's properties: On 21 Mai, 08:16, John Nagle <[EMAIL PROTECTED]> wrote: > If you have a computer science background, here's all you need > to know: Python is a byte-code interpreted untyped Python is strongly but dynamically typed. The fact that

Re: A few questions

2007-05-21 Thread brad
Alex Martelli wrote: > Most popular, however, is no doubt wxWindows -- > mostly because you can freely use it to develop SW which you plan to > distribute under closed-source licenses, while Qt &c force you to choose > -- either pay, or, if you even distribute your code, it will have to be > under

Re: A few questions

2007-05-20 Thread John Nagle
jay wrote: > Hi, > > I'm totally new to Python and was hoping someone might be able to > answer a few questions for me: > > 1. What are your views about Python vs Perl? Do you see one as better > than the other? Python is a much cleaner language than Perl, but not as widely used. The

Re: A few questions

2007-05-20 Thread Alex Martelli
jay <[EMAIL PROTECTED]> wrote: > Hi, > > I'm totally new to Python and was hoping someone might be able to > answer a few questions for me: > > 1. What are your views about Python vs Perl? Do you see one as > better than the other? Yep: if I didn't find Python more readable, maintainable

Re: A few questions

2007-05-20 Thread Anthony Irwin
jay wrote: > Hi, > > I'm totally new to Python and was hoping someone might be able to answer > a few questions for me: > > 1. What are your views about Python vs Perl? Do you see one as better > than the other? I have written some scripts in both perl and python and to me python feels more