Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
498 B
2
Indexable
Never
import uuid
from Note import Note, ExamType, Term, NoteValue
from datetime import date


class Student:

    def __init__(self, name, surname):
        self.uuid = uuid
        self.name = name
        self.surname = surname
        self.notes = []

    def __repr__(self):

        return f"ID: {uuid.uuid4()}, name: {self.name}, surname: {self.surname}, notes: {self.notes}"


    def add_note(self, note: object , uuid: object):

        if self.uuid == uuid:
            self.notes.append(note)