input: Write a function to print a random element from a given list. The function should take a list as input and print one of the elements randomly. If the list is empty, it should print an appropriate message indicating that the list is empty.
  assert print_random_element(["apple", "banana", "mango", "pear", "grape"])
  assert print_random_element([])
output: import random
  
  def print_random_element(lst):
      if not lst:
          print("The list is empty.")
      else:
          print(random.choice(lst))