[Tutor] text processing lines variable content

ingo janssen ingoogni at gmail.com
Thu Feb 7 06:26:54 EST 2019



On 07/02/2019 11:08, Peter Otten wrote:
> Personally I would avoid the NameError and start with empty lists. If you
> manage to wrap all branches into functions with the same signature you can
> replace the sequence of tests with dictionary lookups.

Just before I saw your post I put my current code up here:

https://gist.github.com/ingoogni/e99c561f23777e59a5aa6b4ef5fe37c8

I will study yours,

ingo


More information about the Tutor mailing list