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)
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}")
def delete_course(): name = input('Please enter course name: ') crs = data_services.get_course(name) data_services.delete_course(crs)
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)
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)