Question: - Create a single module file with at least one class definition. It should have at least three attributes and two methods. At least one
- Create a single module file with at least one class definition. It should have at least three attributes and two methods. At least one of the methods needs to take an argument to change how it behaves. (Does not have to be biologically-related)
- Create a test script which uses and shows off the features of your module.
Example given to us:
A student might have created a fasta.py module with an Entry class. That class might have attributes id, title and sequence, then methods like print_sequence(width=80) and reverse_complement().
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
