not working in Quick Sort script
To: tutor@python.org
Date: Thursday, October 29, 2015, 9:12 PM
On 29/10/15 19:11, Patti
Scott via Tutor wrote:
Caveat: I didn't check the algorithms for
correctness,
I'll just take your word
for that.
> My
accumulator variable to cou
Mac OS 10.10
Python 3.4.3
I self-study Python and am using it for a Coursera algorithm class.
Hi! My script sorts correctly on all my test arrays. My accumulator variable
to count the number of comparisons returns nonsense. I'm counting the (length
- one) of each sublist that will be sorted in
Could someone clarify "Modularize code rather than copying and pasting?"
thanks
On Fri, 11/14/14, Albert-Jan Roskam wrote:
Subject: [Tutor] [OT] Best Practices for Scientific Computing
To: "Python Mailing List"
Date: Friday, November 14, 2014, 12:
This makes sense. Thanks.
No question on the specific code, I was just thinking I should show I'd done
any experimenting with the methods
Hi Patti,
My answers below, interleaved between your questions.
On Tue, Apr 22, 2014 at 04:18:38PM -0700, Patti Scott wrote:
> I'm pr
I'm practicing with lists. I was looking for documentation on sorting with
cmp() because it isn't immediately clear to me how comparing items two at a
time can sort the entire list. Identify max or min values, yes, but not sort
the whole list. So, the Sorting HOW TO (Dalke, Hettinger) posted
, Zachary Ware wrote:
> Hi Patti,
>
> On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote:
>> I've been cheating: comment out the conditional statement and adjust the
>> indents. But, how do I make my program run with if __name__ == 'main':
>> main() at the en
I've been cheating: comment out the conditional statement and adjust the
indents. But, how do I make my program run with if __name__ == 'main': main()
at the end? I thought I understood the idea to run a module called directly
but not a module imported. My program isn't running, though.
Belo
Python 2.4
self-study with Python Programming: An Introduction to Computer Science by Zelle
I am trying to import a program that has a conditional execution statement at
the end so I can troubleshoot individual modules in the main() program.
Below is the textbook example program. When I try t