"Graps Graps" wrote:
someone asked a very similar question not long ago, so maybe you're
really supposed to figure this out yourself. I'm sure your teacher
won't kill you if you ask for a hint.
(if you asked me for a hint, I'd tell you to look for questions about
dictionaries in the mailing list archives).
</F>
Text2 is a python dictionary containing data as
>
{0: 'a', 1: 'b', 2: 'c'...}
>
now I want the data in text1 to be replaced with the keys, say like
>
0 1
0 2
0 3
0 6
1 2... so on..
>
{0: 'a', 1: 'b', 2: 'c'...}
>
now I want the data in text1 to be replaced with the keys, say like
>
0 1
0 2
0 3
0 6
1 2... so on..
really supposed to figure this out yourself. I'm sure your teacher
won't kill you if you ask for a hint.
(if you asked me for a hint, I'd tell you to look for questions about
dictionaries in the mailing list archives).
</F>
Comment