Question: This python program should give response codon TAG stop , when this input data was given: AGGCTATA TAG G but it did not .WHY? #prompt
This python program should give response codon TAG stop, when this input data was given:
AGGCTATATAGG
but it did not .WHY?
#prompt for input of data print("Enter your data (press enter twice to end entering):")
#declare a lines array to get input linesArr = []
#read input line by line while True: #read from console singleLine = input() #if line found then append it to the lines array if singleLine: linesArr.append(singleLine) position = 0 # need to define it first while position < len(sequence) - 2: codon = sequence[position:(position+3)] if (codon in ("TAG","TAA","TGA")): print (codon + "-----> STOP") else: print (codon) position = position + 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
