elis aeris wrote: > chat_window_char_definition = { "2.7.1." : "1", > "2.3.3.3.3." : "2", > "2.2.3.3.4." : "3", > "2.2.2.7.1." : "4", > "4.3.3.3.4." : "5", > } > > how do I automatically add to this list without doing it by hand?
Is there some pattern to the values? I can't see it. > > Also, the list is of tuples of 2, how ever, I need to have a tuple of 3, > is that possible? Tuples can be whatever length you want. But what you have is not a list of tuples, it is a dict mapping keys to values. You could make the keys or the values be tuples of strings rather than strings. Some context would probably help us give you a better answer. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor