A voir également:
- Problème en python
- Citizen code python - Guide
- Ce programme est écrit en python ✓ - Forum Python
- Ce programme est écrit en python. ✓ - Forum Python
- Geometry dash python ✓ - Forum Python
- Lancer script python linux - Forum Ubuntu
1 réponse
Utilisateur anonyme
27 nov. 2016 à 00:01
27 nov. 2016 à 00:01
Salut,
Moi non plus, je ne comprend pas car avec ton exemple ça me renvoie : 'MAMAPRTEINSTRING*'.
Voici le code que j'ai tapé :
Moi non plus, je ne comprend pas car avec ton exemple ça me renvoie : 'MAMAPRTEINSTRING*'.
Voici le code que j'ai tapé :
genetic_code = {"UUU":"F","UUC":"F","UUA":"L","UUG":"L","UCU":"S","UCC":"S", "UCA":"S","UCG":"S","UAU":"Y","UAC":"Y","UAA":"*","UAG":"*", "UGU":"C","UGC":"C","UGA":"*","UGG":"W","CUU":"L","CUC":"L", "CUA":"L","CUG":"L","CCU":"P","CCC":"P","CCA":"P","CCG":"P", "CAU":"H","CAC":"H","CAA":"Q","CAG":"Q","CGU":"R","CGC":"R", "CGA":"R","CGG":"R","AUU":"I","AUC":"I","AUA":"I","AUG":"M", "ACU":"T","ACC":"T","ACA":"T","ACG":"T","AAU":"N","AAC":"N", "AAA":"K","AAG":"K","AGU":"S","AGC":"S","AGA":"R","AGG":"R", "GUU":"V","GUC":"V","GUA":"V","GUG":"V","GCU":"A","GCC":"A", "GCA":"A","GCG":"A","GAU":"D","GAC":"D","GAA":"E","GAG":"E", "GGU":"G","GGC":"G","GGA":"G","GGG":"G"} def traduction(Arn , genetic_code): proteine = "" for i in range(0, len(Arn), 3): codon = Arn[i : i + 3] acide_amine = genetic_code[codon] proteine = proteine + acide_amine return proteine traduction ( "AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA", genetic_code)
27 nov. 2016 à 00:53
dite moi s'ils vous plait
où l'avez vous exécuter ?
27 nov. 2016 à 10:44
27 nov. 2016 à 11:08