-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Why does my "homework-alert" ring with this post?
Andreas kumar s wrote: > hi group, > > i have a data obtained from other student(over 100K) > lines that looks like this: > (39577484, 39577692) [['NM_003750']] > (107906, 108011) [['NM_002443']] > (113426, 113750) [['NM_138634', 'NM_002443']] > (106886, 106991) [['NM_138634', 'NM_002443']] > (100708, 100742) [['NM_138634', 'NM_002443']] > (35055935, 35056061) [['NM_002313', 'NM_001003407', > 'NM_001003408']] > > I know that first two items in () are tuples, and the > next [[]] a list of list. I was told that the tuples > were keys and the list was its value in a dictionary. > > how can I parse this into a neat structure that looks > like this: > 39577484, 39577692 \t NM_003750 > 107906, 108011 \t NM_002443 > 113426, 113750 \t NM_138634,NM_002443 > 106886, 106991 \t NM_138634,NM_002443 > 100708, 100742 \t NM_138634,NM_002443 > 35055935, 35056061 \t > NM_002313,NM_001003407,NM_001003408 > > > I treid substituting in vim editor but it is not > effective. > > Thank you > > kum > > > > ____________________________________________________________________________________Pinpoint > customers who are looking for what you sell. > http://searchmarketing.yahoo.com/ > _______________________________________________ > Tutor maillist - [email protected] > http://mail.python.org/mailman/listinfo/tutor -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGU2ZmHJdudm4KnO0RAnIgAJ4oHRPSfYFId7C7TzeWYXPobf9l+QCg34Ja bRtlufQ7K/TKPsLOOBNEmJI= =QeIu -----END PGP SIGNATURE----- _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
