Created
April 11, 2019 08:54
-
-
Save StephenFordham/8e8c5bfbb123c49513e2565a2112cc6d to your computer and use it in GitHub Desktop.
Input Validation
This file contains hidden or 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
import re | |
DNA = input('Please enter your DNA sequence...').upper() | |
while re.search('[^AGCT]', DNA): | |
exit("DNA sequence entered is not valid") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment