Last active
April 8, 2019 08:15
-
-
Save StephenFordham/1c9c85d9333deba3c2fdbeec7a8a629d to your computer and use it in GitHub Desktop.
RegexExample4
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
DNA = 'ATCGACCGGGTTT' | |
if re.search('CCGGG', DNA) or re.search('CCCGG', DNA): | |
print('Restriction enzyme found!') | |
if re.search('CC(G|C)GG', DNA): | |
print('Restriction enzyme found!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment