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

fix first exercice

parent a2af841f
...@@ -20,11 +20,11 @@ Create 2 classes ...@@ -20,11 +20,11 @@ Create 2 classes
* Sequence * Sequence
* MutableSequence * MutableSequence
These 2 classes have same attributes but Sequence can be mutate and extend whereas Sequence are immutable. These 2 classes have same attributes but MutableSequence can be mutate and extend whereas Sequence are immutable.
example of code using these classes: :: example of code using these classes: ::
>>> eco = Sequence('toto' , 'GAATTC') >>> eco = MutableSequence('toto' , 'GAATTC')
>>> eco.mutate(1, 'T') >>> eco.mutate(1, 'T')
>>> eco.sequence >>> eco.sequence
'GTATTC' 'GTATTC'
...@@ -46,7 +46,7 @@ how can you modeling ...@@ -46,7 +46,7 @@ how can you modeling
* non mutable amino acid sequence * non mutable amino acid sequence
* mutable amino acid sequence * mutable amino acid sequence
can you easily extend your model to support no mutable/ mutable RNA sequence ? **bonus**: can you easily extend your model to support no mutable/ mutable RNA sequence ?
.. literalinclude:: _static/code/multi_inheritance.py .. literalinclude:: _static/code/multi_inheritance.py
......
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