Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions