
July 12, 2010
9:45 a.m.
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?

July 2010
11:40 a.m.
On 12 July 2010 11:45, allan oware <lumtegis@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
5486
Age (days ago)
5486
Last active (days ago)
1 comments
2 participants
participants (2)
-
allan oware
-
Scott Sinclair