Question
First, ask the user to input a DNA sequence and store it in a variable called DNA_seq. Though in actual practice you should check if
First, ask the user to input a DNA sequence and store it in a variable called DNA_seq. Though in actual practice you should check if an input contains only DNA nucleotides, you do not have to do this for this lab. Then complete the following:
c) Loop through the stored user input using for j in range(len(DNA_seq)). Within this loop, print out 3 statements: i) the current index number of the loop, ii) the character of DNA_seq at the current index number, and iii) the character of DNA_seq at the (current index number 1).
[SIDE NOTE for part (c): Since this loop starts at j=0, you are allowed to print out the character at negative index values such as DNA_seq[-1]. Observe what is printed in each print statement. Your loop should print 3 statements per iteration.]
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