Another part of program takes care of that patternless stuff, only saving
and retrieving for comparison is concerned for this part of the code.
In [11]: d = { ('a', 'b'): '1',
: ('c', 'd'): '2' }
In [12]:
In [12]: d['a', 'b']
Out[12]: '1'
that does look like what I looking for, how does
elis aeris wrote:
> there is no pattern in the numbers.
Then how do you expect to create them automatically? I don't understand
that part of the question.
> two strings that look like "2.3.3.3.3.", youknow, str(int) + "." +
> str(int) + "." and so forth
> are presented and they equal to a va
there is no pattern in the numbers. but don't worry about it, because all i
am doing is this:
two strings that look like "2.3.3.3.3.", youknow, str(int) + "." +
str(int) + "." and so forth
are presented and they equal to a value, which is the third string.
in short, given the first two strings
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." :
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",