input: Write a function to print all the divisors of a given number. The function should take an integer as input and return a list of its divisors. If the number is negative, the function should return an empty list.
  assert print_divisors(12)==[1, 2, 3, 4, 6, 12]
  assert print_divisors(15)==[1, 3, 5, 15]
  assert print_divisors(-5)==[]
  assert print_divisors(0)==[]
  assert print_divisors(7)==[1, 7]
output: def print_divisors(n):
      if n <= 0:
          return []
      divisors = []
      for i in range(1, n + 1):
          if n % i == 0:
              divisors.append(i)
      return divisors