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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started