... | ... | @@ -112,14 +112,14 @@ def __init__(self, strbases=None): |
|
|
|
|
|
It is used in python for creating **optional arguments**. If no argument is given, python automatically will create one with the default value to "NULL" in case of the first option (if we go for the second option, we need to code an _if strbases == None_ and then assigne "NULL" to the corresponding attribute.
|
|
|
|
|
|
When a null sequence is created, the **\__init()\_\_** method will print the message: "NULL Seq Created"
|
|
|
When a null sequence is created, the **\__init()\_\_** method will print the message: "NULL sequence Created"
|
|
|
|
|
|
* **Filename:** P01/e2.py
|
|
|
* **Description**: Write a python program that first creates a null sequence and then a valid sequence. It should prints the two objects. The output of the program should be:
|
|
|
|
|
|
```
|
|
|
-----| Practice 1, Exercise 2 |------
|
|
|
NULL Seq created
|
|
|
NULL sequence created
|
|
|
New sequence created!
|
|
|
Sequence 1: NULL
|
|
|
Sequence 2: ACTGA
|
... | ... | |