[Tutor] Storing dictionary value, indexed by key, into a variable
alan.gauld at btinternet.com
Fri Apr 4 01:36:53 CEST 2014
On 04/04/14 00:09, Alex Kleider wrote:
> On 2014-04-03 13:52, Danny Yoo wrote:
>> You'll also hear the term "Data Driven Programming" or "Table Driven
>> Programming" to refer to this idea. For example:
> Does anyone know of a similar blog or tutorial (regarding Data Driven
> Programming) that uses Python for it's example(s)? From what I've read
> so far, 'data driven' is a concept quite independent of 'object oriented'.
I don't know of a Python tutorial.
Yes, data driven is completely different to OO.
It is complementary in that you can data drive OO programs too.
And to some extent Python is an example of a data driven
design since function (and method) calls are associated with
dictionaries (ie Python namespaces).
Author of the Learn to Program web site
More information about the Tutor