help how to sort a list in order of 'n' in python without using inbuilt functions??
Mark Lawrence
breamoreboy at yahoo.co.uk
Sat May 25 08:01:06 EDT 2013
On 25/05/2013 09:54, Carlos Nepomuceno wrote:
> 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
>
In my book this is another fail as lists are inbuilt (yuck!) and so is
the add function that'll be called for z+=1.
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
More information about the Python-list
mailing list