input: Write a function to print a random element from a given list. The function should take a list as an argument and use the random library to select and print a random element from the list.
  
  def print_random_element(lst):
      if not lst:
          print("The list is empty.")
          return
      randomIndex = random.randint(0, len(lst)-1)
      randomElement = lst[randomIndex]
      print("Random element: " + randomElement)
  
  import random
  assert print_random_element(["apple", "banana", "mango", "pear", "grape"]) == None
  assert print_random_element([]) == None
output: def print_random_element(lst):
      if not lst:
          print("The list is empty.")
          return
      randomIndex = random.randint(0, len(lst)-1)
      randomElement = lst[randomIndex]
      print("Random element: " + randomElement)