input: Write a function to compute the average salary from a CSV file named 'salary.csv'. The CSV file contains a header and the columns are 'name' and 'salary'. If the file is empty, return 0.0.
  
  def get_average_salary(filename):
    total = 0
    count = 0
  
    with open(filename, 'r') as csvfile:
      csvreader = csv.reader(csvfile)
      next(csvreader) # skip header
  
      # loop through the CSV rows
      for row in csvreader:
        total += int(row[1])
        count += 1
    
    if count == 0:
      return 0.0
    return total/count
  
  # Test cases
  assert get_average_salary('input1.csv') == 2000.0  # Sample non-empty file
  assert get_average_salary('empty.csv') == 0.0  # Sample empty file
  assert get_average_salary('input2.csv') == 2500.0  # Sample custom test case
  assert get_average_salary('input3.csv') == 0.0  # Sample single entry file with salary 0
output: def get_average_salary(filename):
    total = 0
    count = 0
  
    with open(filename, 'r') as csvfile:
      csvreader = csv.reader(csvfile)
      next(csvreader) # skip header
  
      # loop through the CSV rows
      for row in csvreader:
        total += int(row[1])
        count += 1
    
    if count == 0:
      return 0.0
    return total/count