Ejemplo n.º 1
0
def add_grade_student():
    email = input('Please enter student email: ')
    student = data_services.get_student_by_email(email)
    crs = input('Please enter a course name: ')
    course = data_services.get_course(crs)
    degree = input('Please enter the grade: ')
    data_services.student_add_degree(student=student,
                                     course=course,
                                     degree=degree)
Ejemplo n.º 2
0
def get_course():
    name = input('Please enter course name: ')
    course = data_services.get_course(name)
    print(
        f"Course {course.name} have maximum students of {course.max_students}")
Ejemplo n.º 3
0
def delete_course():
    name = input('Please enter course name: ')
    crs = data_services.get_course(name)
    data_services.delete_course(crs)
Ejemplo n.º 4
0
def add_student_course():
    name = input('Please enter course name: ')
    crs = data_services.get_course(name)
    email = input('Please enter student email: ')
    student = data_services.get_student_by_email(email)
    data_services.add_student(crs, student)
Ejemplo n.º 5
0
def update_course():
    name = input('Please enter course name: ')
    crs = data_services.get_course(name)
    name = input('Please enter course name: ')
    max_std = int(input('Please enter course max number of students: '))
    data_services.update_course(crs, name, max_std)