Updated S6: Object Oriented Programming (markdown) authored by Rod Pérez's avatar Rod Pérez
......@@ -553,7 +553,7 @@ We need to develop some **functions** to create sequences for **testing** the Se
Therefore, if we call the function generate_seqs() with the parameters ("A", 3), a list of 3 sequences is returned. The bases in every sequence will be: "A", "AA" and "AAA"
* **Filename**: Session-06/Ex3.py
* **Filename**: S6/e.py
* **Description**: Implement the generate_seqs() function. Test the function with this main program:
```python3
......@@ -594,12 +594,12 @@ Sequence 4: (Length: 10) ACACACACAC
### Exercise 4
Let's play with the **termcolor** module. Modify the previous exercise for printing both lists in different color: print list 1 in **blue**, and list 2 in **green**
Let's play with the **termcolor** module. Modify exercise 3 for printing both lists in different color: print list 1 in **blue**, and list 2 in **green**
You should modify the **print_seqs()** function for including an additional parameter: the color
* **Filename**: Session-06/Ex4.py
* **Description**: The same output than Ex3.py, but in colors. This is how it should looks like:
* **Filename**: S6/e4.py
* **Description**: The same output than e3.py, but in colors. This is how it should looks like:
![](https://github.com/myTeachingURJC/2019-2020-PNE/raw/master/s6-OOP/ex4-01.png)
......
......