one to many (passing variables)

Chris Angelico rosuav at gmail.com
Thu Jul 24 09:36:05 CEST 2014


On Thu, Jul 24, 2014 at 5:27 PM, Martin S <shieldfire at gmail.com> wrote:
> Function A collects data and then calls function B with some, but also has
> data that should be passed to function C.
>
> But ofc if nested functions are allowed then that might solve the issue. I
> don't think I've seen nested functions mentioned in a tutorial I've been
> looking at.

Nested functions shouldn't be necessary.

Just start writing code, then figure out what needs to go where. As
long as you give a name to everything you need to keep track of,
you'll find that pretty much everything 'just works'.

ChrisA



More information about the Python-list mailing list