input: Write a function to compute the average salary of people from a given dataset 'salary.csv'. If the dataset is empty, return 0.
  assert get_average_salary('salary.csv')==2000.0
  assert get_average_salary('empty.csv')==0
output: def get_average_salary(file_name):
      try:
          with open(file_name, 'r') as file:
              salaries = [float(line.strip()) for line in file]
              if not salaries:
                  return 0
              return sum(salaries) / len(salaries)
      except FileNotFoundError:
          return 0