If I want to know whether some characters are found in a string, how? String will be returned as Boolean. The body is as below :
Return True
if the letters 'A', 'T', 'C' or 'G' are found in the string. Return False
if it is not.
def is_valid_sequence(dna):
>>> is_valid_sequence('ATCG')
True
>>> is_valid_sequence('AtcGEQ')
False
How to write the code? Thank you.