-
-
Save parzibyte/75f7281a1f2a5a79028aa92d1864ee37 to your computer and use it in GitHub Desktop.
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 secuencia_valida(secuencia): | |
for letra in secuencia: | |
if not letra.lower() in "actg": | |
return False | |
return True | |
# Probar | |
secuencia = "ACTGactgGCTA" | |
print("¿Es válida?") | |
print(secuencia_valida(secuencia)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment