I was not updating the list from the recursive call.
> merge_sort(left,'left')
> merge_sort(right,'right')
left = merge_sort(left,'left')
right = merge_sort(right,'right')
-A
-Abhi
On Thu, Mar 22, 2012 at 1:40 PM, Abhishek Pratap wrote:
> I am imlpementing a merge sort algo for clari
I am imlpementing a merge sort algo for clarity purposes but my
program is giving me weird answers. Sometimes it is able to sort and
other times it does funky things. Help appreciated
from random import *
from numpy import *
nums = [random.randint(100) for num in range(4)]
#nums = [3,7,2,10]
de
On 12/17/2011 10:40 AM, Peter Otten wrote:
Ken G. wrote:
I have use 'sleep.time(5)' in most of my program but the following error
is throwing me for a loss.
import time
Traceback (most recent call last):
File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py",
line 63, in
Hello,
On Sat, Dec 17, 2011 at 10:19:37AM -0500, Ken G. wrote:
> I have use 'sleep.time(5)' in most of my program but the following error
> is throwing me for a loss.
>
> import time
> Traceback (most recent call last):
> File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py",
>
Ken G. wrote:
> I have use 'sleep.time(5)' in most of my program but the following error
> is throwing me for a loss.
>
> import time
> Traceback (most recent call last):
>File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py",
> line 63, in
> time.sleep(2)
> AttributeErro
I have use 'sleep.time(5)' in most of my program but the following error
is throwing me for a loss.
import time
Traceback (most recent call last):
File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py",
line 63, in
time.sleep(2)
AttributeError: 'str' object has no attribut