[Tutor] can i pass a list to a function and get one back ?
shawn bright
nephish at gmail.com
Sun Oct 22 03:20:45 CEST 2006
hey there, i was just wondering if i could get a list back from a function.
something like
def return_a_list(some_var):
some_list = []
for i in range(5):
var = some_var + i
some_list.append(var)
return some_list
is this cool ?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061021/5e50016f/attachment.htm
More information about the Tutor
mailing list