Unverified Commit 5265e795 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

:allow to donload enzyme*_namedtuple.py scripts

parent 1f2f3aea
Pipeline #57946 passed with stages
in 13 seconds
...@@ -537,7 +537,7 @@ the latter algorithm display the number of occurrence of each enzyme, But we can ...@@ -537,7 +537,7 @@ the latter algorithm display the number of occurrence of each enzyme, But we can
We will see how to do this later. We will see how to do this later.
Bonus Bonus
""""" ^^^^^
There is another kind of tuple which allow to access to itmes by index or name. There is another kind of tuple which allow to access to itmes by index or name.
This data collection is called NamedTuple. The NamedTuple are not accessible directly they are in `collections` package, This data collection is called NamedTuple. The NamedTuple are not accessible directly they are in `collections` package,
...@@ -565,6 +565,7 @@ The code must be adapted as below ...@@ -565,6 +565,7 @@ The code must be adapted as below
:linenos: :linenos:
:language: python :language: python
:download:`enzymes_1_namedtuple.py <_static/code/enzyme_1_namedtuple.py>` .
Exercise Exercise
-------- --------
......
...@@ -212,11 +212,11 @@ and the 2 dna fragments: :: ...@@ -212,11 +212,11 @@ and the 2 dna fragments: ::
:download:`restriction.py <_static/code/restriction.py>` . :download:`restriction.py <_static/code/restriction.py>` .
Bonus Bonus
""""" ^^^^^
If you prefer the enzyme implemeted as namedtuple If you prefer the enzyme implemeted as namedtuple
:download:`restriction.py <_static/code/restriction_namedtuple.py>` . :download:`restriction_namedtuple.py <_static/code/restriction_namedtuple.py>` .
Exercise Exercise
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment