input: 
  def get_average_salary(filename):
      """Reads a CSV file containing salary data and computes the average salary.
      The CSV file should have a header with 'name' and 'salary' as columns.
      
      >>> get_average_salary('salary.csv')
      2000.0
      """
      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:
              try:
                  total += int(row[1])
                  count += 1
              except ValueError:
                  # Handle cases where the salary is not a valid number
                  continue
  
      if count == 0:
          return 0
      
      return total / count
  
  average_salary = get_average_salary('salary.csv')
  print('Average Salary: ', average_salary)
  
  # Output:
  # Average Salary: 2000.0
  
output:     
  import csv
  
  def get_average_salary(filename):
      """Reads a CSV file containing salary data and computes the average salary.
      The CSV file should have a header with 'name' and 'salary' as columns.
      
      >>> get_average_salary('salary.csv')
      2000.0
      """
      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:
              try:
                  total += int(row[1])
                  count += 1
              except ValueError:
                  # Handle cases where the salary is not a valid number
                  continue
  
      if count == 0:
          return 0
      
      return total / count
  
  average_salary = get_average_salary('salary.csv')
  print('Average Salary: ', average_salary)
  