Question: The following is for python programming/jupyter lab. Please answer WITH THE SPECIFIC CODE. thank you, will UPVOTE. Here is the map: - If the generated

The following is for python programming/jupyter lab. Please answer WITH THE SPECIFIC CODE. thank you, will UPVOTE.

Here is the map:

- If the generated number is 1, print '1 A' - If the generated number is 2, print '2 T'

- If the generated number is 3, print '3 C' - If the generated number is 4, print '4 G'

a) Generate a string with a length of 500. Run the dice() 500 time. For each run, convert the integer to one of ATCG using the map above. Assign this string to a variable named "seq". Then print "seq".

Hint: Strings can be concatenated using '+' operator. For example: s = 'G' s += 'T'

# Write your code here seq = '' for # complete the code 

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!