input: from typing import List
  
  def print_divisors(num: int) -> List[int]:
      """
      Given a number, this function returns a list of all its divisors.
      
      >>> print_divisors(10)
      [1, 2, 5, 10]
      >>> print_divisors(17)
      [1, 17]
      >>> print_divisors(36)
      [1, 2, 3, 4, 6, 9, 12, 18, 36]
      """
      divisors = []
      for i in range(1, num + 1):
          if num % i == 0:
              divisors.append(i)
      return divisors
output:     divisors = []
      for i in range(1, num + 1):
          if num % i == 0:
              divisors.append(i)
      return divisors