Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub-courses
python_one_week_4_biologists_solutions
Commits
cf55de4c
Verified
Commit
cf55de4c
authored
Mar 11, 2019
by
Bertrand NÉRON
Browse files
fix pep8
parent
ef3842e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/_static/code/codons_itertools.py
View file @
cf55de4c
from
itertools
import
product
def
all_codons
():
"""
:return: the 64 codons
:rtype: list of string
"""
alphabet
=
'acgt'
all_codons
=
[
''
.
join
(
codon
)
for
codon
in
product
(
alphabet
,
repeat
=
3
)]
return
all_codons
\ No newline at end of file
all_codons
=
[
''
.
join
(
codon
)
for
codon
in
product
(
alphabet
,
repeat
=
3
)]
return
all_codons
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment