# TRUE: valid and lowercase characters
is_dna_seq("acgt")
# FALSE: Must be lowercase
is_dna_seq("AGCT")
# FALSE: Must be only valid characters
is_dna_seq("xxxx")
# FALSE: Must have at least one nucleotide
is_dna_seq("")
Run the code above in your browser using DataLab