... | @@ -176,7 +176,7 @@ Process finished with exit code 0 |
... | @@ -176,7 +176,7 @@ Process finished with exit code 0 |
|
|
|
|
|
### Exercise 5: count_base() method
|
|
### Exercise 5: count_base() method
|
|
|
|
|
|
Implement the **count_base(self)** method. If the sequence is either null or invalid, the return value should be 0.
|
|
Implement the **count_base(self, base)** method. If the sequence is either null or invalid, the return value should be 0.
|
|
|
|
|
|
* **Filename**: P01/e5.py
|
|
* **Filename**: P01/e5.py
|
|
* **Desription**: Write a python program that creates three sequences: one null, one valid, and one invalid and then it prints their lengths, sequences and the number of bases on the console. This is what we should see:
|
|
* **Desription**: Write a python program that creates three sequences: one null, one valid, and one invalid and then it prints their lengths, sequences and the number of bases on the console. This is what we should see:
|
... | | ... | |