input: Write a function to select and print a random element from a given list. If the list is empty, print "No elements in the list." The function should take a list as an argument and return nothing.
  
  
  def print_random_element(lst):
      if not lst:
          print("No elements in the list.")
      else:
          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: import random
  
  def print_random_element(lst):
      if not lst:
          print("No elements in the list.")
      else:
          randomIndex = random.randint(0, len(lst)-1)
          randomElement = lst[randomIndex]
          print("Random element: " + str(randomElement))