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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to