input: Write a function to compute the average salary of people from the dataset 'salary.csv'. The function should read the CSV file, skip the header, sum up the salaries, and return the average. If the file is empty or if there are no salaries, return 0.
  assert get_average_salary('salary.csv') == 2000.0
  assert get_average_salary('emptyfile.csv') == 0
output: def get_average_salary(filename):
      try:
          with open(filename, 'r') as file:
              reader = csv.reader(file)
              next(reader)  # Skip the header
              salaries = [float(row[0]) for row in reader if row]
              if not salaries:
                  return 0
              return sum(salaries) / len(salaries)
      except (FileNotFoundError, ZeroDivisionError):
          return 0