students = []

def get_students_title():
    students_titlecase = []
    for student in students:
        students_titlecase = student.title()
    return students_titlecase
def print_students_titlecase():
      #  students_titlecase = []
  #  for student in students:                       
  #      students_titlecase = student.title()

  # Instead of the above repeated function body we use this instead :
    students_titlecase = get_students_titlecase()
    print(students_titlecase)
students = []

def get_students_titlecase():
    students_titlecase = []
    for student in students:
        students_titlecase = student.title()
    return students_titlecase


def print_students_titlecase():
      #  students_titlecase = []
  #  for student in students:                       
  #      students_titlecase = student.title()

  # Instead of the above repeated function body we use this instead :
    students_titlecase = get_students_titlecase()
    print(students_titlecase)


def add_student(name,student_id=9696):
    student = {"name": name, "student_id": student_id}
    students.append(student)
add student function