Skip to content
Snippets Groups Projects
Select Git revision
  • c80f5509d0b7002353d26360941b539f95ed6539
  • master default protected
2 results

PrincipeGit.drawio

Blame
  • Forked from Derrode Stéphane / INF-TC2
    Source project has a limited visibility.
    chaines-valide.py 257 B
    def valide(seq):
        """Retourne True si séquence ADN."""
        ret = len(seq) != 0
        for c in seq:
            ret = (ret and True) if (c in "atgc") else False
        return ret
    
    if __name__=="__main__": 
        assert valide("atgc")
        assert not valide("atgcz")