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
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
[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
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
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
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
> 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
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
> 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
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
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
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
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
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
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
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
16 matches
Mail list logo