Question: The following corresponds to python/jupyterlab programming. Please answer, will UPVOTE. Using the code: import random seq_map = {} seq_map[1] = 'A' seq_map[2] = 'T' seq_map[3]

The following corresponds to python/jupyterlab programming. Please answer, will UPVOTE.

Using the code:

import random

seq_map = {} seq_map[1] = 'A' seq_map[2] = 'T' seq_map[3] = 'C' seq_map[4] = 'G'

seq = ""

for i in range(500): seq += seq_map[random.randrange(1, 5)]

print(seq)

a) Compare two sequences and count the number of positions where two sequences have the same letter. To this end, generate two sequences using the code above. You must use variable names "seq1" and "seq2" for these two sequences. The name of the counting variable should be "count_same_pos".

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!