input: Write a function to create a dictionary that stores student data including the student's name, year, GPA, list of courses, and extracurricular activities. The function should take name, year, gpa, courses, and extracurricular as parameters and return a dictionary. If any of the parameters are missing, 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('Alice Johnson', 'Sophomore', 3.75, ['chemistry', 'physics'], []) == {
      'name': 'Alice Johnson',
      'year': 'Sophomore',
      'gpa': 3.75,
      'courses': ['chemistry', 'physics'],
      'extracurricular': []
  }
  assert create_student_data('Bob Lee', 'Junior', None, [], ['Art Club']) == {}
  assert create_student_data(None, 'Senior', 3.0, [], []) == {}
output: def create_student_data(name, year, gpa, courses, extracurricular):
      if None in (name, year, gpa, courses, extracurricular):
          return {}
      return {
          'name': name,
          'year': year,
          'gpa': gpa,
          'courses': courses,
          'extracurricular': extracurricular
      }