input: Write a function to compute the average salary of people from a given CSV file 'salary.csv'. The function should skip the header, read each row, sum up the salaries, and then calculate and return the average salary. If the file is empty or no salary entries are present, return 0.0.
  
  assert get_average_salary('salary.csv') == 2000.0
  assert get_average_salary('empty_file.csv') == 0.0
  assert get_average_salary('no_salaries.csv') == 0.0
output: def get_average_salary(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if len(lines) <= 1:
                  return 0.0
              total_salary = 0.0
              count = 0
              for line in lines[1:]:
                  parts = line.strip().split(',')
                  if len(parts) > 1:
                      try:
                          salary = float(parts[1])
                          total_salary += salary
                          count += 1
                      except ValueError:
                          pass
              if count == 0:
                  return 0.0
              return total_salary / count
      except FileNotFoundError:
          return 0.0