Question: Python Write a python function that takes the sequences and protein and returns the matching numbers Input sequences = { 'AC': (5, 15), 'BC': (3,

Python

Write a python function that takes the sequences and protein and returns the matching numbers

Input

sequences = { 'AC': (5, 15), 'BC': (3, 20), 'PQ': (15, 22), 'XY': (22, 35), 'AB': (20, 32), 'BT': (9, 13) }

protein = { ('AC', 'PQ'): 'P1', ('AC','PQ','XY'): 'P2', ('BC', 'AB'): 'P3', ('BT', 'AC') : 'P4' }

Output

generate_protein => (P1, 5,22), (P2, 5, 35), (P3, 3, 32)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!