>On 12 July 2010 11:45, allan oware <lumte...@gmail.com> 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 = asarray(h,dtype=float)
>
>     return m
>
>
> why does return statement return nothing?

It works for me. Can you explain what you mean by "return nothing"?

Cheers,
Scott
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to