Newbie: conventional instead of recursive way

Igor Zivkovic izivkov1 at jagor.srce.hr
Wed Dec 18 17:07:11 EST 2002


Paul Rubin <phr-n2002b at nospamnightsong.com> wrote:

> def printList(L):
>   for x in L:
>     if type(x) == type([]):
>        printList(x)
>     else:
>        print x

Thanks, but I'm looking for a pure conventional solution so no recursions 
are allowed.

-- 
Igor



More information about the Python-list mailing list