Please complete the Class already started and when doing __str__ function please look at the example for formatting
Design a class named Assessment to represent an assessment record. The Assessment class contains the following:
- A private string data field named name that defines the name of an assessment.
- A private list data field named answer_list that defines the list of answer keys of an assessment.
- A constructor that creates an Assessment with the required information.
- The accessor and mutator methods for all data fields.
- A __str__ method which returns a nicely formatted string representation of an assessment.
- A calculate_marks method which takes a string data as a parameter, compares the answer keys, and returns the total marks gained.
Note: Keep a copy of your solution to this task because you will use it in your A1.
For example:
```
lab1 = Assessment('test', 'C,C,D,B,A,B,A,C')
print(lab1)
```
Output:
```
Assessment: test
Answer: ['C', 'C', 'D', 'B', 'A', 'B', 'A', 'C']
```
```python
class Assessment:
def __init__(self, name, answer_list):
self.name = name
self.answer_list = list(answer_list.split(','))
def get_name(self):
return self.name
def set_name(self, name):
self.name = name
def get_answer_list(self):
return self.answer_list
def set_answer_list(self, answer_list):
self.answer_list = answer_list
def __str__(self):
return f"Assessment: {self.name}\nAnswer: {self.answer_list}"
def calculate_marks(self, string_data):
# Implementation of calculate_marks method goes here
pass
```