Re: [Numpy-discussion] Function returns nothing!

2010-07-12 Thread Scott Sinclair
>On 12 July 2010 11:45, allan oware wrote: > Hi All! > > def height_diffs(): >     h = [] >     i = 0 >     while True: >     x = raw_input("Enter height difference ") >     if x == 'q': >     break >     else: >     h.append(x) >     i = i + 1 > >     m = asarr

[Numpy-discussion] Function returns nothing!

2010-07-12 Thread allan oware
Hi All! def height_diffs(): h = [] i = 0 while True: x = raw_input("Enter height difference ") if x == 'q': break else: h.append(x) i = i + 1 m = asarray(h,dtype=float) return m why does return statement return not