Hello, I am wondering if anyone can help with this question? I am pretty rubbish at coding, and it doesnt return anything so I'm not sure what is wrong, and not sure what method to use.
One of the tasks that bioinformaticians need to do is to detect protein-coding genes by looking for start and stop codons in the sequenced viral genomes. Write a Python function named 'start_present' in the following code cell that takes a single DNA sequence (string) as an argument and returns the Boolean value True if the sequence starts with 'ATG' and False if it does not.
One of the tasks that bioinformaticians need to do is to detect protein-coding genes by looking for start and stop codons in the sequenced viral genomes. Write a Python function named 'start_present' in the following code cell that takes a single DNA sequence (string) as an argument and returns the Boolean value True if the sequence starts with 'ATG' and False if it does not.
def start_present(dna_seq1): #your code here raise NotImplementedError() #my answer attempt 1 def start_present(dna_seq1): if dna_seq1 == 'string': return True else: return False raise NotImplementedError() #my answer attempt 2 def start_present(dna_seq1): if string in dna_seq1: return True else: return False raise NotImplementedError()
buran write Nov-27-2020, 04:12 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.