input: Write a function to compute the average salary from a CSV file containing a list of names and their corresponding salaries. The function should read from the file, calculate the average salary, and return the result.
  assert get_average_salary('salary.csv') == 2000.0
  assert get_average_salary('salary1.csv') == 1500.0
  assert get_average_salary('empty_salary.csv') == 0.0
output: def get_average_salary(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return 0.0
              total_salary = 0
              count = 0
              for line in lines:
                  name, salary = line.strip().split(',')
                  total_salary += float(salary)
                  count += 1
              return total_salary / count if count > 0 else 0.0
      except FileNotFoundError:
          return 0.0