Question: # YOUR CODE GOES BELOW THIS POINT # Total nucleotides seen so far. total_count = 0 Number of G and C nucleotides seen so far.
# YOUR CODE GOES BELOW THIS POINT # Total nucleotides seen so far. total_count = 0 Number of G and C nucleotides seen so far. gc_count = 0 for base in nucleotides: total_count = total_count + 1 # OK to change this code! if base == 'C' or base = = 'G': gc_count = gc_count + 1 gc_content = float (gc_count ) / total_count print ( 'GC-content : ', gc_content ) # You can add more assertions here to check properties that you think # should be true about your results. If the condition listed is false, # then the given message will be printed. assert total_count == len(nucleotides), "total_count != length of nucleotides
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
