input: 
  def max_num(list):
      """
      This function takes a list of integers and returns the maximum number in the list.
      
      >>> max_num([9, 2, 5, 6, 4, 1])
      9
      >>> max_num([-3, -1, -5, -2])
      -1
      """
      max_num = list[0]
  
      for num in list:
          if num > max_num:
              max_num = num
      
      return max_num
  
output:     for num in list:
          if num > max_num:
              max_num = num
      
      return max_num