Skip to content
Snippets Groups Projects
Commit e793fb48 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

fix first exercice

parent a2af841f
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,11 @@ Create 2 classes
* Sequence
* 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: ::
>>> eco = Sequence('toto' , 'GAATTC')
>>> eco = MutableSequence('toto' , 'GAATTC')
>>> eco.mutate(1, 'T')
>>> eco.sequence
'GTATTC'
......@@ -46,7 +46,7 @@ how can you modeling
* non 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment