input: Write a function to compute the average salary of people from the 'salary.csv' dataset. The function should read the CSV file, skip the header, and calculate the average salary from the provided data. If the file is empty or has no proper salary data, it should return 0. 
  
  assert get_average_salary('salary.csv')==2000.0
  assert get_average_salary('empty_salary.csv')==0
  assert get_average_salary('missing_salary2.csv')==0
output: def get_average_salary(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if len(lines) <= 1:
                  return 0
              salaries = [float(line.split(',')[1]) for line in lines[1:] if line.strip()]
              if not salaries:
                  return 0
              return sum(salaries) / len(salaries)
      except (FileNotFoundError, ValueError, IndexError):
          return 0