Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 1, 2020 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/75f7281a1f2a5a79028aa92d1864ee37 to your computer and use it in GitHub Desktop.
Save parzibyte/75f7281a1f2a5a79028aa92d1864ee37 to your computer and use it in GitHub Desktop.
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