lol

def absolute(x):
    return x if x>0 else -x

def reach(x):
    y=[]
    z=0
    while z<x:
        y.append(z)
        z+=1
    return y

----------------------------------------
> Date: Sat, 25 May 2013 18:47:24 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using 
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sat, May 25, 2013 at 6:43 PM, Carlos Nepomuceno
> <carlosnepomuc...@outlook.com> wrote:
>> ----------------------------------------
>> lol I forgot to include this monkey patch! ;)
>>
>> def length(l):
>> x=0
>> y=l[:]
>> while y:
>> x+=1
>> y.pop()
>> return x
>
> Nice. Now eliminate abs (easy) and range. :)
>
> ChrisA
> --
> http://mail.python.org/mailman/listinfo/python-list                           
>           
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to