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
       
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to