input: Write a function to print a random element from a given list. The function should take a list as input and print a randomly selected element from the list. If the list is empty, the function should print "No elements in the list".
  def print_random_element(lst):
      if not lst:
          print("No elements in the list")
      else:
          random_index = random.randint(0, len(lst)-1)
          print("Random element: " + lst[random_index])
  
  assert print_random_element(["apple", "banana", "mango", "pear", "grape"])
  assert print_random_element([])
output: def print_random_element(lst):
      if not lst:
          print("No elements in the list")
      else:
          random_index = random.randint(0, len(lst)-1)
          print(lst[random_index])