This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_longer(dna1, dna2): | |
delka1 = len(dna1) | |
delka2 = len(dna2) | |
vysledek = delka1 > delka2 | |
return vysledek |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_length(dna): | |
return len(dna) | |
def is_longer(dna1, dna2): | |
return len(dna1) > len(dna2) | |
def count_nucleotides(dna, nucleotide): | |
return dna.count(nucleotide) | |
def contains_sequence(dna1, dna2): |