Untitled

 avatar
unknown
python
3 years ago
498 B
5
Indexable
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)
Editor is loading...