Create a map for data to flow through

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Oct 3 17:43:13 EDT 2016


Sayth Renshaw wrote:
> Is there a standard library feature that allows you to define a declarative
> map or statement that defines the data and its objects to be parsed and
> output format?

Not really.

> Just wondering as for loops are good but when i end up 3-4 for loops deep and
> want multiple matches at each level i am finding it harder to manage.

When your loops get more than about one or two levels deep,
think about separaring each level into its own function.
That will allow you to think about just one part of the
problem at a time, and help you to not get confused.

-- 
Greg



More information about the Python-list mailing list