Verified Commit e0f44684 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

fix file position for diplaying restriction.py file

parent a5c2a361
Pipeline #10358 passed with stages
in 22 seconds
...@@ -103,7 +103,7 @@ Exercise ...@@ -103,7 +103,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py .. literalinclude:: _static/code/restriction.py
:linenos: :linenos:
:lines: 1-13 :lines: 1-14
:language: python :language: python
* improve the previous function to return all positions of binding sites * improve the previous function to return all positions of binding sites
...@@ -121,12 +121,12 @@ Exercise ...@@ -121,12 +121,12 @@ Exercise
.. literalinclude:: _static/code/restriction.py .. literalinclude:: _static/code/restriction.py
:linenos: :linenos:
:lines: 13-25 :lines: 15-31
:language: python :language: python
**pseudocode of second algorithm** **pseudocode of second algorithm**
| *function one_enz_binding_sites(dna, enzyme)* | *function one_enz_all_binding_sites_2(dna, enzyme)*
| *positions <- empty* | *positions <- empty*
| *find first position of binding site in dna* | *find first position of binding site in dna*
| *while we find binding site in dna* | *while we find binding site in dna*
...@@ -138,7 +138,7 @@ Exercise ...@@ -138,7 +138,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py .. literalinclude:: _static/code/restriction.py
:linenos: :linenos:
:lines: 25-36 :lines: 32-53
:language: python :language: python
...@@ -175,7 +175,7 @@ in bonus we can try to sort the list in the order of the position of the binding ...@@ -175,7 +175,7 @@ in bonus we can try to sort the list in the order of the position of the binding
.. literalinclude:: _static/code/restriction.py .. literalinclude:: _static/code/restriction.py
:linenos: :linenos:
:lines: 37- :lines: 54-
:language: python :language: python
:: ::
......
Supports Markdown
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