input: Write a function to calculate the average salary of people from a given dataset stored in a CSV file named 'salary.csv'. The function should read the CSV file, skip the header, sum up all the salary values, and then compute the average salary. If the input file is empty, the function should return 0. The function should return the average salary as a float.
  assert get_average_salary('salary.csv') == 2000.0
output: def get_average_salary(filename):
      try:
          with open(filename, 'r') as file:
              reader = csv.reader(file)
              next(reader)  # Skip the header
              total_salary = 0
              count = 0
              for row in reader:
                  if row:
                      total_salary += float(row[1])
                      count += 1
              if count == 0:
                  return 0.0
              return total_salary / count
      except FileNotFoundError:
          return 0.0