input: Write a function to create a Python dictionary that stores data about a student including their name, year, GPA, list of courses, and list of extracurricular activities. If the input data is incomplete, the function should return an empty dictionary.
  assert create_student_data("John Smith", "Freshman", 3.25, ['math', 'english', 'Computer Science', 'Statistics'], ['Chess Club', 'Student Government', 'Debate Team'])=={
      'name': 'John Smith',
      'year': 'Freshman',
      'gpa': 3.25,
      'courses': ['math', 'english', 'Computer Science', 'Statistics'],
      'extracurricular': ['Chess Club', 'Student Government', 'Debate Team']
  }
  assert create_student_data("", "Freshman", 3.25, ['math', 'english', 'Computer Science', 'Statistics'], ['Chess Club', 'Student Government', 'Debate Team'])=={}
  assert create_student_data("Jane Doe", "", 3.8, ['biology', 'history'], [])=={}
output: def create_student_data(name, year, gpa, courses, extracurricular):
      if not name or not year:
          return {}
      return {
          'name': name,
          'year': year,
          'gpa': gpa,
          'courses': courses,
          'extracurricular': extracurricular
      }