input: Write a function to print the maximum number from a given list. If the list is empty, print "List is empty".
  
  def find_max(nums):
      if not nums:
          print("List is empty")
      else:
          max_val = nums[0]
          for num in nums[1:]:
              if num > max_val:
                  max_val = num
          print(max_val)
  
  find_max([5, 4, 2, 7, 12])
  find_max([])
  
  assert find_max([5, 4, 2, 7, 12])==None
  assert find_max([])==None
output: def find_max(nums):
      if not nums:
          print("List is empty")
      else:
          max_val = nums[0]
          for num in nums[1:]:
              if num > max_val:
                  max_val = num
          print(max_val)