Globalize all variables in function without knowing names.

Tom Tom.sully at gmx.com
Mon Jul 27 04:58:48 EDT 2009


> Dictionaries are fundamental to Python and very useful. Not learning
> about them before starting to write code is like not learning about the
> accelerator pedal before starting to drive a car.

Heh, I just looked at the actual tutorial for Dictionaries and I have
to say they are very useful. Basically just arrays with strings(or any
other data type, except lists) instead of numbers. I'll work on trying
to integrate them into my language code as, like you said, user
data... Then when a user requests a variable it just accessess the
dictionary, that should work. Thanks!
This is easier than I thought.

> Have you done the tutorial?

I did the first few sections, and then flipped back to it later on to
find out what I needed to know as I coded applications. A bad idea, in
retrospect, particilary as it slowed down my coding time alot.



More information about the Python-list mailing list