I have two lists: one only contains numbers, while the other contains strings. For example:
listA = [ 3, 4, 5, 7]
listB = ["Z2 O95409 V595 **p.His3Leu** Dase - Hophaly type 5 (HPE5) [609637]", "Z2 O95409 V595 **p.His4Leu** Dase - Hophaly type 5 (HPE5) [609637]", "Z2 O95409 V595 **p.His5Leu** Dase - Hophaly type 5 (HPE5) [609637]", "Z2 O95409 V595 **p.His7Leu** Dase - Hophaly type 5 (HPE5) [609637]" ]
I want to match the number in listA and the bolded words in listB. Ultimately, I want to print the whole string of listB, when I use the number of listA. For example, if I use number 3 in listA I also want to print out this: Z2 O95409 V595 **p.His3Leu** Dase - Hophaly type 5 (HPE5) [609637]
As in a dictionary? Use
zip: