input: Write a function to compute the average salary of people from a given dataset stored in 'salary.csv'. The function should read the CSV file, skip the header, and calculate the average salary based on the salaries provided in the file. Return the average salary as a float. If the file is empty, return 0.
  
  assert get_average_salary('salary.csv')==2000.0
  assert get_average_salary('empty_salary.csv')==0
output: def get_average_salary(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()[1:]
              if not lines:
                  return 0.0
              total_salary = sum(float(line.split(',')[1]) for line in lines)
              return total_salary / len(lines)
      except FileNotFoundError:
          return 0.0