input: Write a function to print a random element from a given list of strings. The function should use the `random` module to select a random index and then print the element at that index. If the list is empty, the function should print "No elements in the list".
  
  def print_random_element(my_list):
      if not my_list:
          print("No elements in the list")
      else:
          import random
          randomIndex = random.randint(0, len(my_list)-1)
          print("Random element: " + my_list[randomIndex])
  
  assert print_random_element(["apple", "banana", "mango", "pear", "grape"]) # Output: Random element: [a random fruit]
  assert print_random_element([]) # Output: No elements in the list
  assert print_random_element(["a", "b", "c", "d", "e"]) # Output: Random element: [a random character]
output: def print_random_element(my_list):
      if not my_list:
          print("No elements in the list")
      else:
          import random
          randomIndex = random.randint(0, len(my_list)-1)
          print("Random element: " + my_list[randomIndex])