input: Write a function to randomly select and print an element from a given list. If the given list is empty, print "List is empty".
  def print_random_element(lst):
      if not lst:
          print("List is empty")
      else:
          import random
          randomIndex = random.randint(0, len(lst)-1)
          print("Random element: " + lst[randomIndex])
          
  assert print_random_element(["apple", "banana", "mango", "pear", "grape"]) # Output will be a random fruit
  assert print_random_element([]) # Output: List is empty
output: def print_random_element(lst):
      if not lst:
          print("List is empty")
      else:
          import random
          randomIndex = random.randint(0, len(lst)-1)
          print("Random element: " + lst[randomIndex])